Compile error

  • halins
    21st Jul 2014 Member 0 Permalink

    I tried visual studio.

    but error...

    What's wrong?

     

    1>------ Build started: Project: TPT by Halins, Configuration: Debug Win32 ------
    1>     Creating library C:\Users\user\Desktop\The-Powder-Toy\Debug\TPT by Halins.lib and object C:\Users\user\Desktop\The-Powder-Toy\Debug\TPT by Halins.exp
    1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
    1>gravity.obj : error LNK2019: unresolved external symbol __imp__pthread_mutex_unlock referenced in function _gravity_update_async
    1>gravity.obj : error LNK2019: unresolved external symbol __imp__pthread_cond_signal referenced in function _gravity_update_async
    1>gravity.obj : error LNK2019: unresolved external symbol __imp__pthread_mutex_lock referenced in function _gravity_update_async
    1>gravity.obj : error LNK2019: unresolved external symbol __imp__pthread_exit referenced in function _update_grav_async
    1>gravity.obj : error LNK2019: unresolved external symbol __imp__pthread_cond_wait referenced in function _update_grav_async
    1>gravity.obj : error LNK2019: unresolved external symbol __imp__pthread_create referenced in function _start_grav_async
    1>gravity.obj : error LNK2019: unresolved external symbol __imp__pthread_cond_init referenced in function _start_grav_async
    1>gravity.obj : error LNK2019: unresolved external symbol __imp__pthread_mutex_init referenced in function _start_grav_async
    1>gravity.obj : error LNK2019: unresolved external symbol __imp__pthread_mutex_destroy referenced in function _stop_grav_async
    1>gravity.obj : error LNK2019: unresolved external symbol __imp__pthread_join referenced in function _stop_grav_async
    1>SDL.lib(SDL_systimer.obj) : error LNK2019: unresolved external symbol __imp__timeGetTime@0 referenced in function _SDL_StartTicks
    1>SDL.lib(SDL_systimer.obj) : error LNK2019: unresolved external symbol __imp__timeBeginPeriod@4 referenced in function _SDL_StartTicks
    1>SDL.lib(SDL_systimer.obj) : error LNK2019: unresolved external symbol __imp__timeSetEvent@20 referenced in function _SDL_SYS_TimerInit
    1>SDL.lib(SDL_systimer.obj) : error LNK2019: unresolved external symbol __imp__timeEndPeriod@4 referenced in function _SDL_SYS_TimerQuit
    1>SDL.lib(SDL_systimer.obj) : error LNK2019: unresolved external symbol __imp__timeKillEvent@4 referenced in function _SDL_SYS_TimerQuit
    1>SDL.lib(SDL_dx5video.obj) : error LNK2001: unresolved external symbol _GUID_POV
    1>SDL.lib(SDL_dx5video.obj) : error LNK2001: unresolved external symbol _GUID_Slider
    1>SDL.lib(SDL_dx5video.obj) : error LNK2001: unresolved external symbol _GUID_RzAxis
    1>SDL.lib(SDL_dx5video.obj) : error LNK2001: unresolved external symbol _GUID_RyAxis
    1>SDL.lib(SDL_dx5video.obj) : error LNK2001: unresolved external symbol _GUID_RxAxis
    1>SDL.lib(SDL_dx5video.obj) : error LNK2001: unresolved external symbol _GUID_ZAxis
    1>SDL.lib(SDL_dx5video.obj) : error LNK2001: unresolved external symbol _GUID_YAxis
    1>SDL.lib(SDL_dx5video.obj) : error LNK2001: unresolved external symbol _GUID_XAxis
    1>SDL.lib(SDL_dx5video.obj) : error LNK2001: unresolved external symbol _GUID_Key
    1>SDL.lib(SDL_dx5video.obj) : error LNK2001: unresolved external symbol _IID_IDirectDrawSurface3
    1>SDL.lib(SDL_dx5yuv.obj) : error LNK2001: unresolved external symbol _IID_IDirectDrawSurface3
    1>SDL.lib(SDL_dx5video.obj) : error LNK2001: unresolved external symbol _IID_IDirectDraw2
    1>SDL.lib(SDL_dx5video.obj) : error LNK2001: unresolved external symbol _IID_IDirectDrawGammaControl
    1>SDL.lib(SDL_dibaudio.obj) : error LNK2019: unresolved external symbol __imp__waveOutGetErrorTextA@12 referenced in function _SetMMerror
    1>SDL.lib(SDL_dibaudio.obj) : error LNK2019: unresolved external symbol __imp__waveOutWrite@12 referenced in function _DIB_PlayAudio
    1>SDL.lib(SDL_dibaudio.obj) : error LNK2019: unresolved external symbol __imp__waveOutUnprepareHeader@12 referenced in function _DIB_CloseAudio
    1>SDL.lib(SDL_dibaudio.obj) : error LNK2019: unresolved external symbol __imp__waveOutClose@4 referenced in function _DIB_CloseAudio
    1>SDL.lib(SDL_dibaudio.obj) : error LNK2019: unresolved external symbol __imp__waveOutPrepareHeader@12 referenced in function _DIB_OpenAudio
    1>SDL.lib(SDL_dibaudio.obj) : error LNK2019: unresolved external symbol __imp__waveOutOpen@24 referenced in function _DIB_OpenAudio
    1>SDL.lib(SDL_dx5events.obj) : error LNK2001: unresolved external symbol _GUID_SysMouse
    1>SDL.lib(SDL_dx5events.obj) : error LNK2001: unresolved external symbol _GUID_SysKeyboard
    1>SDL.lib(SDL_dx5events.obj) : error LNK2001: unresolved external symbol _IID_IDirectInputDevice2A
    1>SDL.lib(SDL_syscdrom.obj) : error LNK2019: unresolved external symbol __imp__mciGetErrorStringA@12 referenced in function _SDL_SYS_CDioctl
    1>SDL.lib(SDL_syscdrom.obj) : error LNK2019: unresolved external symbol __imp__mciSendCommandA@16 referenced in function _SDL_SYS_CDioctl
    1>SDL.lib(SDL_mmjoystick.obj) : error LNK2019: unresolved external symbol __imp__joyGetDevCapsA@12 referenced in function _SDL_SYS_JoystickInit
    1>SDL.lib(SDL_mmjoystick.obj) : error LNK2019: unresolved external symbol __imp__joyGetPosEx@8 referenced in function _SDL_SYS_JoystickInit
    1>SDL.lib(SDL_mmjoystick.obj) : error LNK2019: unresolved external symbol __imp__joyGetNumDevs@0 referenced in function _SDL_SYS_JoystickInit
    1>C:\Users\user\Desktop\The-Powder-Toy\Debug\TPT by Halins.exe : fatal error LNK1120: 41 unresolved externals
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    Edited once by halins. Last: 21st Jul 2014
  • xetalim
    21st Jul 2014 Member 2 Permalink

    Have you followed the tutorial on the wiki?

  • jacob1
    21st Jul 2014 Developer 1 Permalink
    Are you using the project file I uploaded, or did you follow the manual steps? Also which version of visual studio are you using? If you set it up correctly, maybe you could switch to a release / static build and see if that fixes anything, and also make sure you have the right libraries in Libraries/