okay, some more details,
if i include my lib its fine
#pragma comment( lib, “SiphonGL.lib” )
but none of my classes are recognised, so i include my “stdafx” type file
from me engine code:
#include “SiphonGL.h”
then thats when i get the error(s).
ideas on a solutiuon?-------------------------------
Fabian “SupaGu” Mathews
From: @Fabian_Mathews (Fabian Mathews)
Reply-To: sdl at libsdl.org
To: sdl at libsdl.org
Subject: [SDL] Re: compiling issues …continued
Date: Sat, 24 Apr 2004 04:16:17 +0000
My library compiles fine,
its when i go to use my library i get this error.
Do i need to put that main declaration in my library?
(im using C++)
ShaderDemo.exe is the exe i want to make that includes my static library.
Thanks again,
Fabian
Fabian “SupaGu” Mathews
From: chrise@chrise.tk (Chris E.)
Reply-To: sdl at libsdl.org
To: sdl at libsdl.org
Subject: [SDL] Re: compiling issues …continued
Date: Fri, 23 Apr 2004 18:39:09 +0100
Fabian Mathews wrote:
Linking…
SDLmain.lib(SDL_main.obj) : error LNK2001: unresolved external symbol
_SDL_main
Is your program written in C++?
This sounds like you haven’t declared your main() function properly - you
need to use the following in C++:
extern “C” int main(int argc, char** argv)
{
// Insert code here
}
If you are wanting to make a library, it seems like the thing is set up to
produce an executable, since it gives Debug/ShaderDemo.exe as the output
filename.
That would also explain the problem - the program would not contain the main
function if meant to be a library.
Chris E.
<< signature.asc >>
its when
Tired of spam? Get advanced junk mail protection with MSN 8.
http://join.msn.com/?page=features/junkmail
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl
Help STOP SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail