Simul Support Exchange โ€บ Category: External Plugin Issues โ€บ SimulOpenGLSample_MD not working
Narinder Pal Singh asked 3 years ago

Hi, 
For example from trueSky 4.3 not working, after installing โ€œTrueSky_4.3.5aac6daae_x64_v142.exeโ€
when I try to run  : Simul/build/bin/Debug/SimulOpenGLSample_MD.exe and
getting  : โ€œThe procedure entry point  ??1CommandLineParams@crossplatform@simul@@QEAA@XZ could not be located in the dynamic link library โ€ฆโ€ error.
Actually I am trying to implement it in opengl project with visual studio and getting similar error.
 

Andrew Richards Staff replied 3 years ago

Hi Narinder,

I have confirmed your crash with SimulOpenGLSample_MD.exe. I will need to investigate this further.
I was able to run SimulOpenGLSample_MT.exe and so I was wondering if you are able to run that also. If so, you could use the static libraries for building your application, whilst we investigate this and get a solution to you.

I hope this helps you
Best Wishes,
Andrew.

Narinder Pal Singh replied 3 years ago

Thank you for assistance, So Can I build OpenGLSample.cpp with static libraries ?

Narinder Pal Singh replied 3 years ago

I tried to build OpenGLSample.cpp with static libraries, but got errors.

Build startedโ€ฆ
1>โ€”โ€” Build started: Project: zecooEngine, Configuration: Debug x64 โ€”โ€”
1>SimulOpenGL_MTd.lib(glad.obj) : error LNK2005: gladLoadGL already defined in glad.obj
1>SimulOpenGL_MTd.lib(glad.obj) : error LNK2005: gladLoadGLLoader already defined in glad.obj
1>SimulOpenGL_MTd.lib(Effect.obj) : error LNK2019: unresolved external symbol __imp_wglGetProcAddress referenced in function โ€œpublic: void __cdecl simul::opengl::EffectPass::SetTextureHandles(struct simul::crossplatform::DeviceContext &)โ€ (?SetTextureHandles@EffectPass@opengl@simul@@QEAAXAEAUDeviceContext@crossplatform@3@@Z)
1>SimulOpenGL_MTd.lib(DisplaySurface.obj) : error LNK2019: unresolved external symbol __imp_wglDeleteContext referenced in function โ€œpublic: virtual void __cdecl simul::opengl::DisplaySurface::InvalidateDeviceObjects(void)โ€ (?InvalidateDeviceObjects@DisplaySurface@opengl@simul@@UEAAXXZ)
1>SimulOpenGL_MTd.lib(DisplaySurface.obj) : error LNK2019: unresolved external symbol __imp_wglGetCurrentContext referenced in function โ€œpublic: virtual void __cdecl simul::opengl::DisplaySurface::RestoreDeviceObjects(struct HWND__ *,class simul::crossplatform::RenderPlatform *,bool,int,int,enum simul::crossplatform::PixelFormat)โ€ (?RestoreDeviceObjects@DisplaySurface@opengl@simul@@UEAAXPEAUHWND__@@PEAVRenderPlatform@crossplatform@3@_NHHW4PixelFormat@63@@Z)
1>SimulOpenGL_MTd.lib(DisplaySurface.obj) : error LNK2019: unresolved external symbol __imp_wglGetCurrentDC referenced in function โ€œpublic: virtual void __cdecl simul::opengl::DisplaySurface::RestoreDeviceObjects(struct HWND__ *,class simul::crossplatform::RenderPlatform *,bool,int,int,enum simul::crossplatform::PixelFormat)โ€ (?RestoreDeviceObjects@DisplaySurface@opengl@simul@@UEAAXPEAUHWND__@@PEAVRenderPlatform@crossplatform@3@_NHHW4PixelFormat@63@@Z)
1>SimulOpenGL_MTd.lib(DisplaySurface.obj) : error LNK2019: unresolved external symbol __imp_wglMakeCurrent referenced in function โ€œpublic: virtual void __cdecl simul::opengl::DisplaySurface::RestoreDeviceObjects(struct HWND__ *,class simul::crossplatform::RenderPlatform *,bool,int,int,enum simul::crossplatform::PixelFormat)โ€ (?RestoreDeviceObjects@DisplaySurface@opengl@simul@@UEAAXPEAUHWND__@@PEAVRenderPlatform@crossplatform@3@_NHHW4PixelFormat@63@@Z)
1>LIBCMTD.lib(exe_main.obj) : error LNK2019: unresolved external symbol main referenced in function โ€œint __cdecl invoke_main(void)โ€ (?invoke_main@@YAHXZ)
1>E:\Projects\Projects_Chitkara\zecooEngine\x64\Debug\zecooEngine.exe : fatal error LNK1120: 6 unresolved externals
1>Done building project โ€œzecooEngine.vcxprojโ€ โ€” FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

1 Answers
Roderick Kennedy Staff answered 3 years ago

Hi Narinder,
Thanks for letting us know, this issue will be fixed in the next upload.

Best regards
Roderick