Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make报错 #5

Open
hauntedvalleyaspect opened this issue Aug 28, 2018 · 1 comment
Open

make报错 #5

hauntedvalleyaspect opened this issue Aug 28, 2018 · 1 comment

Comments

@hauntedvalleyaspect
Copy link

在运行DKRL的代码的时候,make报错
g++ Train_cnn_multi.cpp -o Train_cnn_multi -O2 -lpthread
Train_cnn_multi.cpp: 在函数‘void run(int, int, int, double, double, int)’中:
Train_cnn_multi.cpp:296:12: 警告:extended initializer lists only available with -std=c++11 or -std=gnu++11 [默认启用]
mut_mutex =PTHREAD_MUTEX_INITIALIZER;
^
Train_cnn_multi.cpp: 在函数‘void sgd()’中:
Train_cnn_multi.cpp:491:57: 警告:将一个整数转换为大小不同的指针 [-Wint-to-pointer-cast]
pthread_create(&threads[k], NULL, rand_sel, (void *)k); //train
^
Train_cnn_multi.cpp:499:61: 警告:将一个整数转换为大小不同的指针 [-Wint-to-pointer-cast]
pthread_create(&threads2[k], NULL, update_grad, (void *)k); //update
^
g++ Test_cnn.cpp -o Test_cnn -O2 -lpthread
,请问该如何解决

@andongBlue
Copy link

警告而已,没有关系,可以继续执行编译的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants