| 
 | |||||||
| 
 | 
|  | 
|  | 
|  | Strumenti | 
|  30-11-2003, 12:28 | #1 | 
| Senior Member Iscritto dal: Apr 2002 Città: Vigevano(PV) 
					Messaggi: 2124
				 | 
				
				SDL e VC++
			 
		In VC++ 6: Codice: #ifdef WIN32
#pragma comment(lib, "SDL.lib")
#pragma comment(lib, "SDLmain.lib")
#endif
#include <SDL.h>
#include <stdio.h>
int main(int argc, char **argv)
{
	puts("\nHello SDL User!\n");
	/* initialize SDL */
	if ( SDL_Init( SDL_INIT_VIDEO ) < 0 )
	{
		fprintf( stderr, "Video initialization failed: %s\n",
			SDL_GetError( ) );
		SDL_Quit( );
	}	
	SDL_Quit( );
	return 0;
}[quote] --------------------Configuration: i - Win32 Debug-------------------- Linking... msvcrt.lib(MSVCRT.dll) : error LNK2005: _exit already defined in LIBCD.lib(crt0dat.obj) msvcrt.lib(MSVCRT.dll) : error LNK2005: _strncpy already defined in LIBCD.lib(strncpy.obj) msvcrt.lib(MSVCRT.dll) : error LNK2005: _fprintf already defined in LIBCD.lib(fprintf.obj) msvcrt.lib(MSVCRT.dll) : error LNK2005: _fclose already defined in LIBCD.lib(fclose.obj) msvcrt.lib(MSVCRT.dll) : error LNK2005: __isctype already defined in LIBCD.lib(isctype.obj) LIBCD.lib(crt0init.obj) : warning LNK4098: defaultlib "msvcrt.lib" conflicts with use of other libs; use /NODEFAULTLIB:library Debug/i.exe : fatal error LNK1169: one or more multiply defined symbols found Error executing link.exe. i.exe - 6 error(s), 1 warning(s) /[quote] Help meeeeeee 
				__________________ Gnu/Linux User   | 
|   |   | 
|  30-11-2003, 12:52 | #2 | 
| Member Iscritto dal: Aug 2003 
					Messaggi: 125
				 | 
		Project -> Settings -> C/C++ -> Code Generation -> Use run-time library -> Multi-threaded DLL
		 | 
|   |   | 
|  30-11-2003, 12:55 | #3 | 
| Senior Member Iscritto dal: Apr 2002 Città: Vigevano(PV) 
					Messaggi: 2124
				 | 
		tnk!
		 
				__________________ Gnu/Linux User   | 
|   |   | 
|   | 
| Strumenti | |
| 
 | 
 | 
Tutti gli orari sono GMT +1. Ora sono le: 20:55.









 
		 
		 
		 
		






 
  
 



 
                        
                        










