problem with Visual studio .net 2003 +compiling
ryonagana

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

ReyBrujo

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

ryonagana

#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

ReyBrujo

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

Evert
Quote:

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

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

ryonagana

a screenshot of the error

Evert

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

Neil Walker

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

Neil.

Thread #547945. Printed from Allegro.cc