Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - NickZA

Pages: [1]
1
Graphics / glu.h MinGW
« on: April 13, 2008, 11:23:39 pm »
:oops: right, okay, I hadn't included all libs in my compiler/linker settings... ahem.

I have it compiling, but when it attempts to run it returns with error code 1.... The window flicks out within about a 1/4 second of it appearing.

Any help would be appreciated.

-Nick

2
Graphics / Having problems with this.
« on: April 13, 2008, 10:12:32 pm »
Hi

Be gentle with me here, I'm lost as to how to get this going. Laurent, when you said to include
Code: [Select]
#include SFML_GLU_HEADER

Do you mean directly after
Code: [Select]
#include <SFML/Window.hpp>
?


(I made the change as above, also commented out the lines you mentioned in glew.h, but no go)

Did I have to change anything else like including glew.h in main.cpp, or changing anything else in my build settings, environment settings etc.?


Please help. I would really like to try out this library.  :?

Thanks,

-Nick

Build log follows:


-------------- Build: Debug in CB_SFML_test ---------------

Compiling: main.cpp
Linking console executable: bin\Debug\CB_SFML_test.exe
obj\Debug\main.o: In function `main':
E:/GameProj/CB_SFML_test/main.cpp:21: undefined reference to `__imp___ZN2sf9VideoModeC1Ejjj'
E:/GameProj/CB_SFML_test/main.cpp:21: undefined reference to `__imp___ZN2sf6WindowC1ENS_9VideoModeERKSsmi'
E:/GameProj/CB_SFML_test/main.cpp:27: undefined reference to `_glClearDepth@8'
E:/GameProj/CB_SFML_test/main.cpp:28: undefined reference to `_glClearColor@16'
E:/GameProj/CB_SFML_test/main.cpp:31: undefined reference to `_glEnable@4'
E:/GameProj/CB_SFML_test/main.cpp:32: undefined reference to `_glDepthMask@4'
E:/GameProj/CB_SFML_test/main.cpp:35: undefined reference to `_glMatrixMode@4'
E:/GameProj/CB_SFML_test/main.cpp:36: undefined reference to `_glLoadIdentity@0'
E:/GameProj/CB_SFML_test/main.cpp:37: undefined reference to `_gluPerspective@32'
E:/GameProj/CB_SFML_test/main.cpp:45: undefined reference to `__imp___ZN2sf6Window8GetEventERNS_5EventE'
E:/GameProj/CB_SFML_test/main.cpp:57: undefined reference to `_glViewport@16'
E:/GameProj/CB_SFML_test/main.cpp:63: undefined reference to `__imp___ZNK2sf6Window10SetCurrentEv'
E:/GameProj/CB_SFML_test/main.cpp:66: undefined reference to `_glClear@4'
E:/GameProj/CB_SFML_test/main.cpp:69: undefined reference to `_glMatrixMode@4'
E:/GameProj/CB_SFML_test/main.cpp:70: undefined reference to `_glLoadIdentity@0'
E:/GameProj/CB_SFML_test/main.cpp:71: undefined reference to `_glTranslatef@12'
E:/GameProj/CB_SFML_test/main.cpp:72: undefined reference to `_glRotatef@16'
E:/GameProj/CB_SFML_test/main.cpp:73: undefined reference to `_glRotatef@16'
E:/GameProj/CB_SFML_test/main.cpp:74: undefined reference to `_glRotatef@16'
E:/GameProj/CB_SFML_test/main.cpp:77: undefined reference to `_glBegin@4'
E:/GameProj/CB_SFML_test/main.cpp:79: undefined reference to `_glVertex3f@12'
E:/GameProj/CB_SFML_test/main.cpp:80: undefined reference to `_glVertex3f@12'
E:/GameProj/CB_SFML_test/main.cpp:81: undefined reference to `_glVertex3f@12'
E:/GameProj/CB_SFML_test/main.cpp:82: undefined reference to `_glVertex3f@12'
E:/GameProj/CB_SFML_test/main.cpp:84: undefined reference to `_glVertex3f@12'
obj\Debug\main.o:E:/GameProj/CB_SFML_test/main.cpp:85: more undefined references to `_glVertex3f@12' follow
obj\Debug\main.o: In function `main':
E:/GameProj/CB_SFML_test/main.cpp:109: undefined reference to `_glEnd@0'
E:/GameProj/CB_SFML_test/main.cpp:112: undefined reference to `__imp___ZN2sf6Window7DisplayEv'
E:/GameProj/CB_SFML_test/main.cpp:115: undefined reference to `sf::Window::~Window()'
E:/GameProj/CB_SFML_test/main.cpp:115: undefined reference to `sf::Window::~Window()'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 1 seconds)
30 errors, 0 warnings

Pages: [1]
anything