Undefined Reference To Winmain Dev C++

Posted : admin On 31.12.2020

C Undefined Reference To Function Gender roles for a jungle treehouse culture Box around continued fraction Specific word to describe someone who is so good that isn't even considered in say a classification Publishing a mathematical Is it possible to keep publishing under my professional (maiden) name, different from my married legal name? Aug 25, 2009  The Eclipse Foundation - home to a global community, the Eclipse IDE, Jakarta EE and over 350 open source projects, including runtimes, tools and frameworks.

  1. Undefined Reference To Winmain Gcc
  2. Undefined Reference To Winmain@16
Joined
Sep 12, 2003
Messages
20,583
Undefined Reference To Winmain Dev C++
Which library does a Dev-C++ compiled program have to link with to resolve the following [Linker error]:
undefined reference to '[email protected]'
ld returned 1 exit status
when WinMain is clearly defined in the C++ source code as the name of main, using the Dev-C++ environment v4.9.9.2. and #include <windows.h>, i.e.:
#include <windows.h>
..
void WinMain()
{
..
}
On Unix I used to run a piped command like:
cat lib*.a ??? gawk 'WinMain'
well, maybe I ran a script that fed the list of libraries in one at a time to the middle command or something like that, in order to find an interface like 'WinMain' in a library, but do not see anyway of doing the same on WinXP hosting the Dev-C++ environment.
Also, obviously, I've been away from Unix too long to remember the middle command. Duh?
-- Tom

Undefined Reference To Winmain Gcc

Vst guitar effects download. cs2370week8cs2370week8AssigncardDeck.o'
c:/program files/codeblocks/mingw/bin/./lib/gcc/mingw32/4.7.1/./././libmingw32.a(main.o):main.c:(.text.startup+0xa7): undefined reference to `WinMain@16'
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 7 seconds)
1 errors, 0 warnings (0 minutes, 7 seconds) Rappers that use auto tune.

  • 2 Contributors
  • forum 1 Reply
  • 393 Views
  • 31 Minutes Discussion Span
  • commentLatest Postby mike_2000_17Latest Post

mike_2000_172,669

Undefined Reference To Winmain Dev C++

Undefined Reference To Winmain@16

Make sure you select 'Console Application' in your project's configurations. The WinMain function that is missing from your code is the 'main' function that is expected from a GUI Win32 application. If you select 'console' application, it should be looking for the 'main()' function, which I presume you have defined in your 'main.c' file.