Skip to main content
GameDev.net gamedev.net
🔒 Locked

ClanLib gives runtime errors

Started by Leo28C Jul 9, 2008 at 11:18 PM 1 replies 1.2k views
Original Post
Leo28C
Leo28C
I got ClanLib installed earlier today: http://www.gamedev.net/community/forums/topic.asp?topic_id=500710 Well, it compiled fine, but now my programs show this error: This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. I'm using this:

CFLAGS    := -Wall -ansi -g -O3
CXXFLAGS  := $(CFLAGS) -mthreads -I/mingw/include/ClanLib-0.8

CLANLIBS  := -lclanApp -lclanGL -lclanDisplay -lclanCore -lclanSignals
EXTRALIBS := -lz -lwinmm -lddraw -ldinput -ldxguid -ljpeg -lpng            -lopengl32 -lglu32 -lz
LFLAGS    := $(CLANLIBS) $(EXTRALIBS)

I'm guessing I need to put some DLLs with my application, but I can't figure out which ones. Also, I went through the trouble of re-installing MinGW and MSYS just for this... Any ideas? Thanks in advance!
Hodgman
Hodgman
Can you run your program with the Debugger attached? It should show you the line of code that is causing the error.
Leo28C
Leo28C
DAMN IT.

I forgot to add this line:
CL_SetupGL setup_gl;

I spent like 2 hours installing the VC9 version to figure that out.

It was all thanks to your comment; if you hadn't said that I wouldn't have checked the debugger carefully to see that the error had something to do with OpenGL. Thanks very much! =)

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.