Cannot link my project with SDL 1.1.6 under VC6

I always get linking erros when I try to use SDL 1.1.6 with my project.
I tried using “multi-threaded dll” as option in “code generation” but it
just ain’t working.

Any ideas?

Thx,
Pat

I always get linking erros when I try to use SDL 1.1.6 with my project.
I tried using “multi-threaded dll” as option in “code generation” but it
just ain’t working.

Any ideas?

What are the error messages?
BTW, VC++ gurus, any idea why SDL applications are so sensitive to the
C library settings? Is this a common issue, or am I doing something wrong?

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

What are the error messages?

I suppose that are the same that appears to me.
A lot of Link errors in libc ( libcmt ) because of symbols
redefinition.

If works ok for me building single thread, but my app is multi thread
and then I access memory from different threads so the app crash
randomly.

BTW, VC++ gurus, any idea why SDL applications are so sensitive to
the
C library settings? Is this a common issue, or am I doing something
wrong?

I am not a guru, but I have tried to add /nodefaultlib and instead of
fix the link errors, it add new ones.

I don’t want to look like a lammer but help would be appreciated.

Use /FORCE:MULTIPLE (hope it was so) option with linker. Anyway- haven’t
tried to use 1.1.6, but with 1.1.4 for me all works fine without this
switch (i hope so, haven’t looked at them for a while).

KovacsOn Wed, 8 Nov 2000, MIGUEL ANGEL BLANCH LARDIN wrote:

What are the error messages?

I suppose that are the same that appears to me.
A lot of Link errors in libc ( libcmt ) because of symbols
redefinition.

If works ok for me building single thread, but my app is multi thread
and then I access memory from different threads so the app crash
randomly.

BTW, VC++ gurus, any idea why SDL applications are so sensitive to
the
C library settings? Is this a common issue, or am I doing something
wrong?

I am not a guru, but I have tried to add /nodefaultlib and instead of
fix the link errors, it add new ones.

I don’t want to look like a lammer but help would be appreciated.

Link with Multithreaded DLL, not just Multithreaded.

Marco Iannaccone @Marco_Iannaccone
ICQ: 18748121 Tolkien

“I’ve… seen things you people wouldn’t believe. Attack ships on fire off
the shoulder of Orion.
I watched C-beams… glitter in the dark near the Tanhauser Gate. All
those… moments will be lost… in time…, like… tears… in… rain.”

kovacs at mt.lv escribi?:

Use /FORCE:MULTIPLE (hope it was so) option with linker. Anyway- haven’t
tried to use 1.1.6, but with 1.1.4 for me all works fine without this
switch (i hope so, haven’t looked at them for a while).

    Kovacs

Thanks.
But I have done as FAQ said.
VisualC.html is outdate, the code generation have to be “Multithread DLL”,
instead of “Multithread”.
I build all the libs that I need with the code generation set to
"Multithread DLL" and all work OK.

Regards,
Miguel