User forums > Using Code::Blocks
Linking lib's in C::B
oBFusCATed:
Please post the full log if you really want to get some help...
perento:
I included this with the default Win32 GUI code
--- Code: ---#define WIN32_LEAN_AND_MEAN
#include "resource.h"
#include <windows.h>
#include <gl\gl.h>
#include <gl\glu.h>
#include <gl\glaux.h>
--- End code ---
The build log said:
-------------- Build: Debug in Triangles ---------------
Compiling: main.cpp
D:\Programs\CodeBlocks\openGL tutorials\Triangles\main.cpp:7:60: error: gl\glaux.h: No such file or directory
mingw32-g++.exe: tutorials\Triangles": No such file or directory
Process terminated with status 1 (0 minutes, 0 seconds)
1 errors, 0 warnings
This line here, mingw32-g++.exe: tutorials\Triangles", 'Triangles' should be in 'openGL tutorials' folder and it is there if i search on my own.
When i make #include <gl\glaux.h> as comment
massage pop-up said:
"It seems that this project has not been built yet. Do you wish to build it?"
When i press "Yes":
-------------- Build: Debug in Triangles ---------------
Linking console executable: bin\Debug\Triangles.exe
mingw32-g++.exe: tutorials\Triangles": No such file or directory
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
Jenna:
As first don't use paths with spaces in it on windows, that leads to problems with some versions of MinGW !
perento:
Renamed it at 'openGLtuts', still searching in folder 'tutorials'.
oBFusCATed:
perento:
You've not posted the full log!
Please read this: http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version