Hey, it's been six months and a new hard drive since I did any programming... so I'm kind of starting over from scratch. I decided to skip code::blocks this time and try a bare bones approach, just for fun. I've hit a dead end already though, trying to get the first tutorial to compile.
I am using windows 7, the latest stable irrlicht, 1.8, and mingw with gcc version 4.6.2. I am compiling the first tutorial and get errors:
Code: Select all
g++ -Wall -ID:\Opt\irrlicht-1.8\include -LD:\Opt\irrlicht-1.8\lib\Win32-gcc sub.cpp libIrrlicht.a -o sub.exe
sub.cpp: In function 'int main()':
sub.cpp:13:5: error: 'IrrlichDevice' was not declared in this scope
sub.cpp:13:20: error: 'device' was not declared in this scope
sub.cpp:20:5: error: 'IVideoDrive' was not declared in this scope
sub.cpp:20:19: error: 'driver' was not declared in this scope
sub.cpp:40:65: error: 'sColor' was not declared in this scope
mingw32-make: *** [sub.exe] Error 1
I guess I don't know how to specify the library. The paths should be right since it finds the header. I've tried swapping places of "sub.cpp" and "libIrrlicht.a" although I think the libraries should be after the file(?), also replacing "libIrrlicht.a" with "-lIrrlicht" (according to
http://www.network-theory.co.uk/docs/gc ... ro_17.html). There must be something else I'm missing... any hints?