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

when built the project ,Error: 'idx' : undeclared identifier . #45

Open
yanmenglu opened this issue Jan 16, 2017 · 11 comments
Open

when built the project ,Error: 'idx' : undeclared identifier . #45

yanmenglu opened this issue Jan 16, 2017 · 11 comments

Comments

@yanmenglu
Copy link

the error is
image
the corresponding code is
image
if you know the reason,please tell me .Thank you !

@gnebehay
Copy link
Owner

seems related to this issue: #6

@yanmenglu
Copy link
Author

ok,run done .Thank you very much.

@bxwang2016
Copy link

@yanmenglu How could you solve this problem? I have try many times,but it doesn't work. Would you like to tell me the details? Thank you~

@gloryer
Copy link

gloryer commented Apr 21, 2017

@yanmenglu The same issue here, would you please tell us how you solve the error? Thanks!

@yanmenglu
Copy link
Author

@gloryer @bxwang2016 ,you can try this.Maybe it work.

t_index N = points.size();
int S[2_N-1];
change to
int_ S = new int[2*N-1];

@gloryer
Copy link

gloryer commented Apr 22, 2017

I notice that this change has been fixed in the CppMT. But I still get error for “idx” undelared identifier. I have run Cmake to create visual studio project file successfully. Any idea for solution, please. Thank you! @yanmenglu @gnebehay

@allensu0314
Copy link

@gloryer Have you fixed this error? I have met the same error with the latest code. I'll be appreciated if you can tell me any idea, thank you! ---from HUST. :D

@gloryer
Copy link

gloryer commented May 20, 2017

@ChaselS314 Not fixed yet. Do you resolve the problem?

@allensu0314
Copy link

@gloryer Maybe you can try it with release mode. Antway, I fixed it in this way.

@allensu0314
Copy link

Finally, I review this code for some reason, and found this bug is caused by line endings setting in windows.
You guys can fixed it by change the advanced save options of lien endsing to windows(CR LF) in Visual Studio. @gloryer @bxwang2016

@JimmyRaoUF
Copy link

I encountered this problem as well. It's like @Chen-Su has said, the line ending issue. You can solve this by downloading a small add in tool for Visual Studio named StripEm, you can easily google it out. Be sure to use it targeted at the error file and save it before rebuild it.

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

6 participants