-
Notifications
You must be signed in to change notification settings - Fork 27
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
Compilation error on scalar.h #1
Comments
I tested a weird idea that the compiler identify VOID==void. |
oh, and I'm using Boost 1.44.0 |
Windows has a nasty habit of defining various types like these. VOID is one of them (for a more complete list, see http://msdn.microsoft.com/en-us/library/aa383751%28VS.85%29.aspx). Making it compile on windows requires some #undefing. I've been working on it, but the library isn't quite functional yet on Windows. |
Hi Leont. Thank for clearing it out. Here are a few notes that I collected so far: The followinf statment is missing from In Glob.C, line 8 and 11: helpers.C, line 22 and 34: For some reason the build process creates tab++.C is missing (for the 'exit' call): now I'm stuck on the dll-building stage, with That's it for now. what do you think? btw, will you be on YAPC::Asia this year? Shmuel. |
Hi Shmuel, Thanks for all the feedback, it's really helpful.
No, I won't be at YAPC::Asia. Right now I have neither money nor time for such a trip. Again, thanks your feedback. I hope I can fix the linking issue soon. Leon |
Hi Leon. about evaluate.c: it does uses IV/NV types. so if you don't include internal.h, were are these types declared? And about YAPC::Asia, I'm thinking about giving a talk about C-Perl binding, the include Libperl++ as 'future directions'. (also Ctypes and XSpp) Thanks, |
Erm, evaluate.C doesn't use IV/NV types, it just declares a string that will be evaluated by the interpreter. Yes, by all means include libperl++ in your talk. I'd be happy to assist you with the slides for that part |
true. however, it includes perl++.h, that includes scalar.h, that mentions IV/NV. Also, is there a place in this project where I can contribute? |
I now understand what you meant with the evaluate.C problem. IV/NV and friends should be defined in config.h, but that is empty on Windows for some reason. I'm going to look into it, but it sure is a strange regression. |
Hi.
I am trying to compile your project, and get an error:
blib\headers/perl++/scalar.h:185: error: expected identifier before 'void'
blib\headers/perl++/scalar.h:185: error: expected '}' before 'void'
blib\headers/perl++/scalar.h:185: error: expected unqualified-id before ',' token
blib\headers/perl++/scalar.h:185: error: two or more data types in declaration of 'SCALAR'
blib\headers/perl++/scalar.h:185: error: expected initializer before '}' token
line 185 is: enum context {VOID, SCALAR, LIST};
I am using Strewberry Perl 5.12 on Windows with MingW.
I tried, but could not spot the problem. maybe my C++ is out of shape...
Thanks,
Shmuel.
The text was updated successfully, but these errors were encountered: