haxeui / hxWidgets

Haxe externs (and wrappers) for wxWidgets
MIT License
77 stars 23 forks source link

00-Showcase sample shows an error window when running the compiled executable #76

Open s1-en opened 3 years ago

s1-en commented 3 years ago

image

Afterwards, it seems to run just fine as far as I could tell apart from the WebView not loading for some reason (Windows)

ianharrigan commented 3 years ago

What version of wxWidgets are you using?

s1-en commented 3 years ago

Hello, I am on wxWidgets 3.1.5. And building 00-blank with dynamically linked instead of static throws a build fail

 - Link: Main.exe: link.exe -out:Main.exe -nologo -machine:x86 -subsystem:console,5.01 -libpath:lib user32.lib @obj/msvc19xp/all_objs ws2_32.lib C:\wxWidgets-3.1.5\lib\vc_dll\*.lib
   Creating library Main.lib and object Main.exp
LIBCMT.lib(exe_winmain.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function "int __cdecl __scrt_common_main_seh(void)" (?__scrt_common_main_seh@@YAHXZ)
Main.exe : fatal error LNK1120: 1 unresolved externals
Error: Error while running command
link.exe -out:Main.exe -nologo -machine:x86 -subsystem:console,5.01 -libpath:lib user32.lib @obj/msvc19xp/all_objs ws2_32.lib C:\wxWidgets-3.1.5\lib\vc_dll\*.lib
Error: Build failed