Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 11 Mar 2013
Offline Last Active May 08 2013 06:50 PM

#5044860 lib3ds

Posted by huymoi7 on 20 March 2013 - 06:28 AM

There is no .dll files or .lib files (just .h, .cpp and some make files). So does that mean I do not link anything?


I redirected my compiler in code blocks to the folder with the lib3ds h files (settings->compiler->search directories tab).


Here is a picture of my problem.



  • It detects the included header file <lib3ds.h>

  • It understands the type Lib3dsFile from <lib3ds.h> 

  • but I can't get it to understand the function 'lib3ds_file_open'. It gives me an "undefined reference to 'lib3ds_file_open' error.


but when I hover my mouse over the function it displays the function prototype (as seen in the .h file), I also went to the included .h file for <lib3ds.h> and checked that the function is there (which it is).


Why can I detect the lib3ds.h file, read in a struct from it, but fail to find a reference to the lib3ds_file_open function?

#5042202 Starting OpenGL

Posted by huymoi7 on 11 March 2013 - 11:39 PM

Hi I'm starting out learning OpenGL from the book "Beginning OpenGL Game programming".


I am using Code blocks as an IDE and Windows 7 as an operating system. I've followed the steps in this tutorial to setup Code blocks mingw with GLUT.




When I take the source code from chapter 2 on the CD and I copy and paste it into my IDE I get the attached print screen as an error. 


The print screen indicates that the SetPixelFormat() method cannot be referenced. I did some research and it appears that the SetPixelFormat() method is under the WGL reference




and I infer that GLUT installs WGL for me. So why can't I reference SetPixelFormat()? What am I missing? Do I have to do some kind of linking first?


Note - I was able to successfully copy, paste, build and run the source code of chapter 1 without any problems.

Attached Thumbnails

  • help.png