CodeBlocks and mingw
Started by: George PetsagourakisGeorge Petsagourakis
On: 1226516794|%e %b %Y, %H:%M %Z|agohover
Number of posts: 1
rss icon RSS: New posts
CodeBlocks and mingw
George PetsagourakisGeorge Petsagourakis 1226516794|%e %b %Y, %H:%M %Z|agohover

Trying to compile on CodeBlocks and mingw I get too many errors.

  1. Create a GLUT project through the codeblocks project wizard and make sure that it compiles and runs.
  2. Then Rename main.cpp to LuaGL.c and replace the contents with the ones found in the fabiowguerra/svn/src/LuaGL.c
  3. Add a File->New->File..->C/C++ Header File, LuaGL.h paste the contents of the respective file from fabiowguerra/svn/include/LuaGL.h
  4. Continue the same process for the rest of the files. LuaGlu, LuaGlut, LuaGlAux.
  5. Create a new Dynamic Library build target from the menu File -> New.
  6. Add the liblua5.1.lib to the linker tab for the whole project in the Build Options dialog.
  7. Press built for the dll built target and watch the errors go!

At the moment I am having a lot undefined references from LuaGlu.c on the Lua API functions.

unfold CodeBlocks and mingw by George PetsagourakisGeorge Petsagourakis, 1226516794|%e %b %Y, %H:%M %Z|agohover
New post
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.