User forums > General (but related to Code::Blocks)
Problem trying to build project
Wicksmacker:
Hello, I had my project working before I reformat.
Now I get the following errors:
--- Quote ---mingw32-g++.exe: ..\..\..\..\..\Program Files\Lua\5.1\lib\lua5.1.lib: No such file or directory
mingw32-g++.exe: ..\..\..\..\..\Program Files\Lua\5.1\lib\lua51.lib: No such file or directory
--- End quote ---
I added these files in the Linker settings tab of Build Options.
The files/directory are definitely there.
Why do I keep getting this error?
thomas:
Probably a problem with the ..\..\..\..\.. - easy to get those wrong.
I'd try adding the path to the linker's search directories, preferabbly as an absolute path stored in a user variable (that's what they're for). Then the library can be accessed by its name only, much more comfortably and failsafe.
Wicksmacker:
That fixed the problem. Thank you very much, Thomas.
Tupac:
I have a similar problem working a project in Code::Blocks ........ Do you have any suggestion?
These are the Error messages:
--- Quote ---C:\project\metis-4.0\Lib\util.c Undefined reference to "srand48"
C:\project\metis-4.0\Lib\initpart.c Undefined reference to "drand48"
--- End quote ---
The Lib's paths have been previously declared in the Compiler and Linker Search Directories.
The files requested exist all of them: util.c & util.o - and - initpart.c & initpart.o
The standard library #include <stdlib.h> is declared inside of these C files (for using srand48 and drand48).
Previously the Cholmod and Metis math tools have been processed without errors using the Make sentence of the Cygwin tool.
But I see that these errors are referred to Standard Library functions!
Look foward any help.
Thanks.
thomas:
Not related to the previous problem, as in your case it's not a linker path that's wrong, but missing symbols, i.e. you're not linking the object file or library containing srand48 and drand48 at all.
I'm not sure if either Cygwin or MinGW support drand48 at all, though... so you might need to compile drand48.c or something...
Navigation
[0] Message Index
[#] Next page
Go to full version