Allegro.cc - Online Community

Allegro.cc Forums » Installation, Setup & Configuration » problem with Visual studio .net 2003 +compiling

This thread is locked; no one can reply to it. rss feed Print
problem with Visual studio .net 2003 +compiling
ryonagana
Member #6,623
November 2005

i set up the visual studio for dynamic linking
and when i compile the source i get a error in END_OF_MAIN();

how can i fix it?

sorry about my english

c++

ReyBrujo
Moderator
January 2001
avatar

Can you post the code you are trying to compile? Also, have you remembered to add alleg.lib to the list of extra libraries?

--
RB
光子「あたしただ…奪う側に回ろうと思っただけよ」
Mitsuko's last words, Battle Royale

ryonagana
Member #6,623
November 2005

#include <allegro.h>

int main(void)
{
allegro_init();
allegro_message("Hello World");
return 0;
}
END_OF_MAIN()

this code
a test , because , the laqst week i was using visual studio 98

i depend all libs
alleg.lib, alld.lib and allp.lib

c++

ReyBrujo
Moderator
January 2001
avatar

Can you post the exact error? Also, you only need to include alleg.lib as extra libraries...

--
RB
光子「あたしただ…奪う側に回ろうと思っただけよ」
Mitsuko's last words, Battle Royale

Evert
Member #794
November 2000
avatar

Quote:

Also, you only need to include alleg.lib as extra libraries...

Should, actually - or you'll get duplicate definitions.

ryonagana
Member #6,623
November 2005

a screenshot of the error

c++

Evert
Member #794
November 2000
avatar

That's a runtime error, not a compiletime error.
By the way, you may want to upgrade to Allegro 4.2.

Neil Walker
Member #210
April 2000
avatar

Seeing as you're in debug mode, step into the code and do a screenshot where the exception happens.

Neil.

Neil.
MAME Cabinet Blog / AXL LIBRARY (a games framework) / AXL Documentation and Tutorial

wii:0356-1384-6687-2022, kart:3308-4806-6002. XBOX:chucklepie

Go to: