www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/15/00:43:36

Xref: news2.mv.net comp.os.msdos.djgpp:4989
From: broeker AT PROBLEM_WITH_INEWS_DOMAIN_FILE (Hans-Bernhard Broeker)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: RSX funny: mangled versus unmangled forms of a name
Date: 14 Jun 1996 12:10:54 GMT
Organization: RWTH -Aachen / Rechnerbetrieb Informatik
Lines: 12
Message-ID: <4prkse$8l7@news.rwth-aachen.de>
References: <2CE08D74ADB AT fs2 DOT mt DOT umist DOT ac DOT uk>
NNTP-Posting-Host: axpcl6.physik.rwth-aachen.de
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

A.Appleyard (A DOT APPLEYARD AT fs2 DOT mt DOT umist DOT ac DOT uk) wrote: 

> (2) How to tell gcc not to mangle the function name `WinMain' when
>   compiling t$_.cc? Or how to tell djgpp's linker to treat
>   _WinMain__FUsUsPci as equivalent to _WinMain ?

That's what "extern 'C' { ...} " is for. Put that around your declaration
(and possibly also the definition) of WinMain, and all should be well.

Hans-Bernhard Broeker (Aachen, Germany)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019