Witam. Mam zainstalowanego MS VC++ 2005 express, do tego zainstalowaną platform SDK oraz dokonane zmiany wg. polecen na stronce microsoftu by moc tego uzywac. Ostatnio zaimplementowalem sobie biblioteke SDL dokonywujac odpowiednich zmian w kompilatorze tak jak przy paltformie SDK. Ale wyskakuja mi dziwne bledy, dla przyklau, oto program ktory jest z tutoriala:
#include "SDL.h"
void ShowBMP(char *file, SDL_Surface *screen, int x, int y)
{
SDL_Surface *image;
SDL_Rect dest;
/* Load the BMP file into a surface */
image = SDL_LoadBMP(file);
if ( image == NULL ) {
fprintf(stderr, "Couldn't load %s: %s\n", file, SDL_GetError());
return;
}
/* Blit onto the screen surface.
The surfaces should not be locked at this point.
*/
dest.x = x;
dest.y = y;
dest.w = image->w;
dest.h = image->h;
SDL_BlitSurface(image, NULL, screen, &dest);
/* Update the changed portion of the screen */
SDL_UpdateRects(screen, 1, &dest);
}
A oto błędy:
Linking...
MSVCRTD.lib(cinitexe.obj) : warning LNK4098: defaultlib 'msvcrt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
SDLmain.lib(SDL_win32_main.obj) : error LNK2019: unresolved external symbol _SDL_main referenced in function _main
E:\Moje c++\smieci\proba_sdk\Debug\proba_sdk.exe : fatal error LNK1120: 1 unresolved externals
Build log was saved at "file://e:\Moje c++\smieci\proba_sdk\proba_sdk\Debug\BuildLog.htm"
proba_sdk - 2 error(s), 1 warning(s)
Bardzo proszę o wskazowkę co moge z tym zrobic, dlaczego tak jest.. :) z gory dziekuje