Advertisement

Dev-C++ framework

Started by June 27, 2003 10:18 AM
5 comments, last by Wiktor 21 years, 8 months ago
Hi! I downloaded Dev-C++ framework(lesson 1 and 2) and when i''m compiling it there are 3 errors: line 153: `CDS_FULLSCREEN'' undeclared (first use this function) line 153: (Each undeclared identifier is reported only once line 153: for each function it appears in.) and there are 2 linker errors: gcc: d:\opengl\lesson01\lesson01\lesson1_source.o: No such file or directory gcc: No input files What i have to do to compile it?
Do a #define CDS_FULLSCREEN 0x4 at the beginning of your code. This define is missing in the windows headers provided with mingw which Dev-C++ uses.
baumep
Advertisement
Now it''s compiling without any errors but linker shows few errors:
d:\opengl\lesson01\lesson01\lesson1_source.o(.text+0x38):lesson1_source: undefined reference to `glViewport@16''
d:\opengl\lesson01\lesson01\lesson1_source.o(.text+0x45):lesson1_source: undefined reference to `glMatrixMode@4''
d:\opengl\lesson01\lesson01\lesson1_source.o(.text+0x4d):lesson1_source: undefined reference to `glLoadIdentity@0''
d:\opengl\lesson01\lesson01\lesson1_source.o(.text+0x84):lesson1_source: undefined reference to `gluPerspective@32''
d:\opengl\lesson01\lesson01\lesson1_source.o(.text+0x91):lesson1_source: undefined reference to `glMatrixMode@4''
d:\opengl\lesson01\lesson01\lesson1_source.o(.text+0x99):lesson1_source: undefined reference to `glLoadIdentity@0''
d:\opengl\lesson01\lesson01\lesson1_source.o(.text+0xb7):lesson1_source: undefined reference to `glShadeModel@4''
d:\opengl\lesson01\lesson01\lesson1_source.o(.text+0xd1):lesson1_source: undefined reference to `glClearColor@16''
d:\opengl\lesson01\lesson01\lesson1_source.o(.text+0xe0):lesson1_source: undefined reference to `glClearDepth@8''
d:\opengl\lesson01\lesson01\lesson1_source.o(.text+0xf0):lesson1_source: undefined reference to `glEnable@4''
d:\opengl\lesson01\lesson01\lesson1_source.o(.text+0x100):lesson1_source: undefined reference to `glDepthFunc@4''
d:\opengl\lesson01\lesson01\lesson1_source.o(.text+0x115):lesson1_source: undefined reference to `glHint@8''
d:\opengl\lesson01\lesson01\lesson1_source.o(.text+0x13b):lesson1_source: undefined reference to `glClear@4''
d:\opengl\lesson01\lesson01\lesson1_source.o(.text+0x143):lesson1_source: undefined reference to `glLoadIdentity@0''
d:\opengl\lesson01\lesson01\lesson1_source.o(.text+0x258):lesson1_source: undefined reference to `wglMakeCurrent@8''
d:\opengl\lesson01\lesson01\lesson1_source.o(.text+0x282):lesson1_source: undefined reference to `wglDeleteContext@4''
d:\opengl\lesson01\lesson01\lesson1_source.o(.text+0x854):lesson1_source: undefined reference to `ChoosePixelFormat@8''
d:\opengl\lesson01\lesson01\lesson1_source.o(.text+0x898):lesson1_source: undefined reference to `SetPixelFormat@12''
d:\opengl\lesson01\lesson01\lesson1_source.o(.text+0x8ce):lesson1_source: undefined reference to `wglCreateContext@4''
d:\opengl\lesson01\lesson01\lesson1_source.o(.text+0x914):lesson1_source: undefined reference to `wglMakeCurrent@8''
d:\opengl\lesson01\lesson01\lesson1_source.o(.text+0xc2f):lesson1_source: undefined reference to `SwapBuffers@4''

What''s going on now? What i have to do?
{Sorry for lame questions but i''m using dev-c++ first time, before i was using Visual C++}
you for got to link...

press alt+p -> parameters -> Linker

add ''-lopengl32''



you may need to add ''-lglu32''

without the quotes off course..
/Please excuse my bad spelling - My native language is binary not english|Visit meTake my advice - I don''t use it...
I added it but it is still something wrong with linker:
d:\opengl\lesson01\lesson01\lesson1_source.o(.text+0x854):lesson1_source: undefined reference to `ChoosePixelFormat@8'
d:\opengl\lesson01\lesson01\lesson1_source.o(.text+0x898):lesson1_source: undefined reference to `SetPixelFormat@12'
d:\opengl\lesson01\lesson01\lesson1_source.o(.text+0xc2f):lesson1_source: undefined reference to `SwapBuffers@4'

I don't know what else i have to add because i've never programmed in dev-c++

[edited by - Wiktor on June 27, 2003 4:52:46 PM]
I can''t remember where some of those come from, so what I do is this:


Start/Search/Files or folders..
..\dev-cpp\lib

in the text field, type SetPixelFormat

link to the library that pops up

I believe you need gdi32, not sure tho.. -lgdi32.a

A search will help make it more obvious

I fseek, therefore I fam.
I'll give you a beating like Rodney King who deserved it!=====================================Any and all ideas, theories, and text c2004,c2009 BrainDead Software. All Rights Reserved.
Advertisement
Just downloaded lesson 1 for Dev-C++ - it works just fine...

(just doubble click on ''Lesson1.dev'' )

other than that - if you want to start a project from scratch :

make sure that you choose ''Win32 GUI'' as type and put this in the linker box ''-lopengl32 -lglu32 -lglaux''

glaux is an obsoltet MS lib, and you migth be missing glaux.dll ( but you can grab it -here-
/Please excuse my bad spelling - My native language is binary not english|Visit meTake my advice - I don''t use it...

This topic is closed to new replies.

Advertisement