qtmain.lib(qtmain_win.obj):-1: error: LNK2019: unresolved external symbol main referenced in function WinMain

46 views
Skip to first unread message

nitish Srivastava

unread,
Aug 3, 2020, 8:38:18 PM8/3/20
to Protocol Buffers
Hi,

I am using protobuf-3.12.4 on Windows 10. Configured using 
"cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_BUILD_TYPE=Release -Dprotobuf_WITH_ZLIB=OFF -Dprotobuf_MSVC_STATIC_RUNTIME=OFF -DCMAKE_INSTALL_PREFIX=../../../../install ../.."

Compiled it on Visual studio 2019 in Release mode for x64 architecture.

Got following issue-
qtmain.lib(qtmain_win.obj):-1: error: LNK2019: unresolved external symbol main referenced in function WinMain

Looks like library has got it's own main.

Can you please let me know how to fix this?

Thanks,
Nitish
Reply all
Reply to author
Forward
0 new messages