CVS Update (1.1.5 prerelease)

Okay, with the exception of possibly rearranging the audio directory
and updated 1.1.5 API docs, the current CVS snapshot is what will be
released as SDL 1.1.5.

Please bang on it, and let me know if it breaks anything!
http://www.libsdl.org/cvs.html

Akawaka, if you get a chance, can you look at the SDL docs in WhatsNew
and update the documentation? Xark already started on some of it, but
there are a lot of updates. :slight_smile:

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

I am trying to compile CVS Update 1.1.5 prerelease with VisualC,
and here’s what I am getting (happens on both Debug and Release builds):

--------------------Configuration: SDL - Win32 Debug--------------------

Compiling…
SDL.c
SDL_active.c
SDL_audio.c
SDL_audiocvt.c
SDL_audiomem.c
SDL_blit.c
SDL_blit_0.c
d:\projectonline\cvsroot\sdl\src\video\sdl_blit_0.c(468) : warning
C4550: expression evaluates to a function which is missing an argument
list
d:\projectonline\cvsroot\sdl\src\video\sdl_blit_0.c(471) : warning
C4550: expression evaluates to a function which is missing an argument
list
SDL_blit_1.c
d:\projectonline\cvsroot\sdl\src\video\sdl_blit_1.c(523) : warning
C4550: expression evaluates to a function which is missing an argument
list
d:\projectonline\cvsroot\sdl\src\video\sdl_blit_1.c(526) : warning
C4550: expression evaluates to a function which is missing an argument
list
SDL_blit_A.c
d:\projectonline\cvsroot\sdl\src\video\sdl_blit_a.c(558) : warning
C4550: expression evaluates to a function which is missing an argument
list
d:\projectonline\cvsroot\sdl\src\video\sdl_blit_a.c(560) : warning
C4550: expression evaluates to a function which is missing an argument
list
d:\projectonline\cvsroot\sdl\src\video\sdl_blit_a.c(565) : warning
C4550: expression evaluates to a function which is missing an argument
list
d:\projectonline\cvsroot\sdl\src\video\sdl_blit_a.c(570) : warning
C4550: expression evaluates to a function which is missing an argument
list
d:\projectonline\cvsroot\sdl\src\video\sdl_blit_a.c(572) : warning
C4550: expression evaluates to a function which is missing an argument
list
d:\projectonline\cvsroot\sdl\src\video\sdl_blit_a.c(574) : warning
C4550: expression evaluates to a function which is missing an argument
list
d:\projectonline\cvsroot\sdl\src\video\sdl_blit_a.c(582) : warning
C4550: expression evaluates to a function which is missing an argument
list
d:\projectonline\cvsroot\sdl\src\video\sdl_blit_a.c(584) : warning
C4550: expression evaluates to a function which is missing an argument
list
d:\projectonline\cvsroot\sdl\src\video\sdl_blit_a.c(588) : warning
C4550: expression evaluates to a function which is missing an argument
list
d:\projectonline\cvsroot\sdl\src\video\sdl_blit_a.c(595) : warning
C4550: expression evaluates to a function which is missing an argument
list
d:\projectonline\cvsroot\sdl\src\video\sdl_blit_a.c(603) : warning
C4550: expression evaluates to a function which is missing an argument
list
d:\projectonline\cvsroot\sdl\src\video\sdl_blit_a.c(605) : warning
C4550: expression evaluates to a function which is missing an argument
list
d:\projectonline\cvsroot\sdl\src\video\sdl_blit_a.c(607) : warning
C4550: expression evaluates to a function which is missing an argument
list
d:\projectonline\cvsroot\sdl\src\video\sdl_blit_a.c(615) : warning
C4550: expression evaluates to a function which is missing an argument
list
d:\projectonline\cvsroot\sdl\src\video\sdl_blit_a.c(616) : warning
C4550: expression evaluates to a function which is missing an argument
list
d:\projectonline\cvsroot\sdl\src\video\sdl_blit_a.c(620) : warning
C4550: expression evaluates to a function which is missing an argument
list
SDL_blit_N.c
D:\ProjectOnline\CvsRoot\Sdl\Src\Video\SDL_blit_N.c(1535) : warning
C4550: expression evaluates to a function which is missing an argument
list
D:\ProjectOnline\CvsRoot\Sdl\Src\Video\SDL_blit_N.c(1537) : warning
C4550: expression evaluates to a function which is missing an argument
list
D:\ProjectOnline\CvsRoot\Sdl\Src\Video\SDL_blit_N.c(1540) : warning
C4550: expression evaluates to a function which is missing an argument
list
D:\ProjectOnline\CvsRoot\Sdl\Src\Video\SDL_blit_N.c(1542) : warning
C4550: expression evaluates to a function which is missing an argument
list
SDL_bmp.c
SDL_cdrom.c
SDL_cursor.c
SDL_dibaudio.c
SDL_dibevents.c
SDL_dibvideo.c
d:\projectonline\cvsroot\sdl\src\video\windib\sdl_dibvideo.c(654) :
warning C4101: ‘j’ : unreferenced local variable
SDL_dx5audio.c
SDL_dx5events.c
SDL_dx5video.c
SDL_dx5yuv.c
SDL_endian.c
SDL_error.c
SDL_events.c
SDL_fatal.c
SDL_gamma.c
SDL_joystick.c
SDL_keyboard.c
SDL_mixer.c
SDL_mmjoystick.c
SDL_mouse.c
SDL_pixels.c
SDL_quit.c
SDL_resize.c
SDL_RLEaccel.c
SDL_rwops.c
SDL_stretch.c
SDL_surface.c
SDL_syscdrom.c
SDL_syscond.c
SDL_sysevents.c
SDL_sysmouse.c
SDL_sysmutex.c
SDL_syssem.c
SDL_systhread.c
SDL_systimer.c
SDL_syswm.c
SDL_thread.c
SDL_timer.c
SDL_video.c
SDL_wave.c
SDL_wingl.c
SDL_yuv.c
SDL_yuv_sw.c
Linking…
Creating library Debug/SDL.lib and object Debug/SDL.exp

SDL.dll - 0 error(s), 25 warning(s)-------
Looks harmless enough, but then I try to rebuild one of my previous
projects
using new libraries and get these errors:

--------------------Configuration: Asynch - Win32
Debug--------------------
Linking…
msvcrt.lib(MSVCRT.dll) : error LNK2005: _exit already defined in
LIBCMTD.lib(crt0dat.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _strncpy already defined in
LIBCMTD.lib(strncpy.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _fprintf already defined in
LIBCMTD.lib(fprintf.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: __isctype already defined in
LIBCMTD.lib(isctype.obj)
LIBCMTD.lib(crt0init.obj) : warning LNK4098: defaultlib "msvcrt.lib"
conflicts with use of other libs; use /NODEFAULTLIB:library
Debug/Asynch.exe : fatal error LNK1169: one or more multiply defined
symbols found
Error executing link.exe.

Asynch.exe - 5 error(s), 1 warning(s)


I tried to figure out what’s going on and failed miserably.
Could someone please hit me with a clue stick?

Thanks,
M.C.

SDL.dll - 0 error(s), 25 warning(s)


Looks harmless enough,

Yep, these are harmless, although if you get a chance Mattias, can
you look at these?

but then I try to rebuild one of my previous projects
using new libraries and get these errors:

Yes, sorry. I forgot to explicitly state that the new builds have switched
back over to Multithreaded DLL code generation. I’ll add that to the FAQ.
http://www.libsdl.org/faq/FAQ-Win32.html#WIN32_3b

Thanks!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

but then I try to rebuild one of my previous projects
using new libraries and get these errors:

Yes, sorry. I forgot to explicitly state that the new builds have
switched
back over to Multithreaded DLL code generation. I’ll add that to the
FAQ.
http://www.libsdl.org/faq/FAQ-Win32.html#WIN32_3b

Switched to Multithreaded DLL, rebuilt the project, got one warning:

MSVCRTD.lib(cinitexe.obj) : warning LNK4098: defaultlib "msvcrt.lib"
conflicts with use of other libs; use /NODEFAULTLIB:library

Added msvcrt under Project | Settings | Link | Input | Ignore libraries.

Rebuilt the project, 0 error(s), 0 warning(s).

Thanks for your help!
M.C.

merlecorey at crosswinds.net wrote:

Switched to Multithreaded DLL, rebuilt the project, got one warning:

MSVCRTD.lib(cinitexe.obj) : warning LNK4098: defaultlib "msvcrt.lib"
conflicts with use of other libs; use /NODEFAULTLIB:library

Added msvcrt under Project | Settings | Link | Input | Ignore libraries.

Rebuilt the project, 0 error(s), 0 warning(s).

Thanks for your help!
M.C.
You don’t have to ignore that library (I think, it works for me). The
problem is, that SDL.dll is compiled with msvcrt.lib and your program
compiles in debug mode with the debug lib msvcrtd.lib. If you compile
the release version you shouldn’t get the warning.

Proff–

Florian ‘Proff’ Schulze - @Florian_Schulze
Member: TeamTNT - http://www.teamtnt.com
Homepage: - http://proff.fly.to
ICQ#: - 40510245

SDL_blit_A.c
d:\projectonline\cvsroot\sdl\src\video\sdl_blit_a.c(558) : warning
C4550: expression evaluates to a function which is missing an argument
list

Are your compiler on digital drugs? I can’t see anything wrong with that
line. Does it warn when you are multiplying by today’s date too?
Or is it a compiler written before 1989 (when the old C Standard took
effect), that required using the address-of operator (&) when getting
function pointers?

Could someone please hit me with a clue stick?

It’s your compiler that needs one. Tell us what compiler it was and the
version, so we all can avoid it

Sam Lantinga wrote:

Okay, with the exception of possibly rearranging the audio directory
and updated 1.1.5 API docs, the current CVS snapshot is what will be
released as SDL 1.1.5.

Please bang on it, and let me know if it breaks anything!
http://www.libsdl.org/cvs.html

Akawaka, if you get a chance, can you look at the SDL docs in WhatsNew
and update the documentation? Xark already started on some of it, but
there are a lot of updates. :slight_smile:

Great. Sam, could you please enable svga library detection for FreeBSD, as we
now have port of svgalib working here. This will require some changes in
keyboard handling code because it’s system specific. As usually, you can find
latest patches at:
http://www.FreeBSD.org/cgi/cvsweb.cgi/ports/devel/sdl-devel/patches/.

-Maxim