I've spent way too much time trying to figure this out (hence it being 3:40 AM).
I've got the
PARI/GP library that I want to use for arbitrary precision calculations. I downloaded the tar.gz from their website, I got cygwin, I ran ./Configure and then make install. Library made. Woo.
I went to Settings -> Compiler and Debugger, and added the \include folder PARI generated, so the headers are all found. I clicked on the linker tab in the same window, and added the directory to the libpari.a library file. Under my project specifically, I linked libpari.a directly via the Linker Settings tab. This is how I read this is all to be done, and everything is recognized.
Yet, I keep getting odd errors, not just for PARI/GP, but for any other library I try to link this way. When I add in #include <pari.h> so I can use the library, I get 4 errors:
C:\cygwin\usr\local\include\pari\paridecl.h|525|error: expected ')' before numeric constant|
C:\cygwin\usr\local\include\pari\paridecl.h|632|error: expected ')' before numeric constant|
C:\cygwin\usr\local\include\pari\paridecl.h|632|error: expected ';', ',' or ')' before 'GEN'|
C:\cygwin\usr\local\include\pari\paridecl.h|644|error: expected ')' before numeric constant|
This header file is one of the many pari.h uses, and I really cant understand whats going on. When I tried a different arbitrary precision library, I got other similar errors. The libraries are built correctly, they are not corrupt as I tried this multiple times with different dowloads of the same library. It has to be something i'm doing wrong within C::B.
Help?