User forums > Help
Glut and wxWidgets together in a project
oBFusCATed:
Ah, you have to setup you project manually.
I think it will be easier to create wx project, than make it use glut by copying options from a working glut project.
The project templates are made to ease the creation of common projects, your is not such.
In order to succeed you need to understand how compiling works (include dirs, compiler options, lib dirs, linker options), but I don't know where (except google) you can find that information.
ozgurgerilla:
--- Quote from: oBFusCATed on September 01, 2009, 04:56:36 pm ---Ah, you have to setup you project manually.
I think it will be easier to create wx project, than make it use glut by copying options from a working glut project.
The project templates are made to ease the creation of common projects, your is not such.
In order to succeed you need to understand how compiling works (include dirs, compiler options, lib dirs, linker options), but I don't know where (except google) you can find that information.
--- End quote ---
I've checked all include dirs, compiler options, lib dirs, linker options and they are all the same; wxwidgets seems to work but GLUT doesn't. If you could find something please post it because I am stuck with DevC++ 4.x and wxWidgets 2.6.0, I can't even use the super awesome wxAUI! lol
Regards,
Ozgur.
oBFusCATed:
--- Quote from: ozgurgerilla on September 02, 2009, 12:27:56 pm ---... wxwidgets seems to work but GLUT doesn't. ...
--- End quote ---
What does that mean? The compiler/linker has told you what is the problem, you just need to decipher it!
That's why I told you to enable full logging, so you can see how the compiler/linker is run (what options are passed to it).
And if you know the required options you would know what is missing...
p.s. if you can't fix you problem you could post the full log here, so someone could spot the problem...
ozgurgerilla:
--- Quote from: oBFusCATed on September 02, 2009, 12:44:48 pm ---
--- Quote from: ozgurgerilla on September 02, 2009, 12:27:56 pm ---... wxwidgets seems to work but GLUT doesn't. ...
--- End quote ---
What does that mean? The compiler/linker has told you what is the problem, you just need to decipher it!
That's why I told you to enable full logging, so you can see how the compiler/linker is run (what options are passed to it).
And if you know the required options you would know what is missing...
p.s. if you can't fix you problem you could post the full log here, so someone could spot the problem...
--- End quote ---
Hi,
There is an error and 7 warnings, the error is:
error: redeclaration of C++ built-in type `short'
it says how this line in glut.h is redeclared:
--- Code: ---typedef unsigned short wchar_t;
--- End code ---
but I have no variable named wchar_t
Regards,
GERILLA.
oBFusCATed:
Trying google I've found this:
http://forums.codeblocks.org/index.php?topic=1000.msg6876
p.s. I've not read the whole topic, but I should have some clues what is needed...
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version