Undefined symbols on windows?

hello,

i’m trying to compile a project that uses sdl on windows.
i get a lot of link errors like

Undefined Symbol: __imp__fprintf in
SDLmain.lib (./Release/SDL_main.obj)

what is missing?

i’m using codewarrior 5.

regards
sebastian mecklenburg

Hello,

I haven’t used Windows in a while, but I’d guess that you
need to link to whatever library the C function “fprintf” is
in. (I can’t remember what it is called though.)

This is just a guess though.

See ya

 Charles Iliya Krempeaux
 tnt @ linux.ca
 ckrempea @ alumni.sfu.caOn Sun, 2001-12-02 at 06:05, Sebastian Mecklenburg wrote:

hello,

i’m trying to compile a project that uses sdl on windows.
i get a lot of link errors like

Undefined Symbol: __imp__fprintf in
SDLmain.lib (./Release/SDL_main.obj)

what is missing?

i’m using codewarrior 5.

regards
sebastian mecklenburg


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

MSDN says:
Function Required Header
fprintf <stdio.h>
fwprintf <stdio.h> or <wchar.h>

LIBC.LIB for single thread static library
LIBCMT.LIB for multithread static library
MSVCRT.LIB for importing library for MSVCRT.DLL

It looks like you need msvcrt.lib.> ----- Original Message -----

From: Sebastian Mecklenburg
Sent: Sunday, December 02, 2001 6:05 AM
Subject: [SDL] Re: undefined symbols on windows?

hello,

i’m trying to compile a project that uses sdl on windows.
i get a lot of link errors like

Undefined Symbol: __imp__fprintf in
SDLmain.lib (./Release/SDL_main.obj)

what is missing?

i’m using codewarrior 5.

regards
sebastian mecklenburg


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl