Mig32-w64 32bit - Undefined reference to winmain

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
martinrame
Posts: 329
Joined: Mon, 2009-02-23, 19:57

Mig32-w64 32bit - Undefined reference to winmain

#1 Post by martinrame » Fri, 2019-05-03, 13:46

Hi, I need to build dcmtk-3.6.1_20150217 snapshot (I need this version because a library I've built some time ago need this specific version) using Mingw32-w64 for 32bits, but after configuring with CMAKE using CMAKE-GUI on Windows 7 and executing mingw32-make I get undefined reference to WinMain@16 when the build process reach 77% and tries to link dcmprscu.exe

How can I fix this?.

martinrame
Posts: 329
Joined: Mon, 2009-02-23, 19:57

Re: Mig32-w64 32bit - Undefined reference to winmain

#2 Post by martinrame » Fri, 2019-05-03, 13:51

Btw, I'm using gcc version 4.9.1 (i686-posix-dwarf-rev3, Built by MinGW-W64 project).

Jan Schlamelcher
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 318
Joined: Mon, 2014-03-03, 09:51
Location: Oldenburg, Germany

Re: Mig32-w64 32bit - Undefined reference to winmain

#3 Post by Jan Schlamelcher » Mon, 2019-05-06, 08:43

Weird, our MinGW-GCC 8.2.1 posix x86_64-w64-mingw32 in our Nightlybuilds still works fine. Maybe a problem with the fancy new GCC?

martinrame
Posts: 329
Joined: Mon, 2009-02-23, 19:57

[SOLVED] Re: Mig32-w64 32bit - Undefined reference to winmain

#4 Post by martinrame » Sat, 2019-05-11, 00:01

Well, I deleted my mingw and also that dcmtk version, downloaded everything again, compiled and it worked without a glitch.

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Majestic-12 [Bot] and 1 guest