delorie.com/archives/browse.cgi | search |
NNTP-Posting-Date: | Fri, 08 Nov 2002 13:56:59 -0600 |
From: | Charles Wilkins <chas AT pcscs DOT com> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: ld: what is causing this? |
Date: | Fri, 08 Nov 2002 14:58:54 -0500 |
Message-ID: | <2q2osu0pibeaek8r33sij31t2pv2ioq8dt@4ax.com> |
References: | <sfpnsukdt3pb21a7luhnfgphsnc1crc116 AT 4ax DOT com> <4lunsukkrfjh1arjvdon910hm8fn6om2h5 AT 4ax DOT com> <1036780332 DOT 535222 AT queeg DOT ludd DOT luth DOT se> |
X-Newsreader: | Forte Agent 1.92/32.570 |
MIME-Version: | 1.0 |
Lines: | 17 |
NNTP-Posting-Host: | 68.45.75.113 |
X-Trace: | sv3-RT2foMjQ8TAWQqY85v6lVaCyuOdN29a4p4cxwCaBhwg6kaKbLyTlBwmv6nIeaYcYFbCUcQ44Xj9dzb1!tZZEelpBjlJRdatDOsWfC8hpdtDJlKDuyhpH8R/4PT/xBuslsNgx0Ttndsv9CoSOievct9w= |
X-Complaints-To: | abuse AT comcast DOT com |
X-DMCA-Complaints-To: | dmca AT comcast DOT net |
X-Abuse-and-DMCA-Info: | Please be sure to forward a copy of ALL headers |
X-Abuse-and-DMCA-Info: | Otherwise we will be unable to process your complaint properly |
X-Postfilter: | 1.1 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
>You didn't say what you are compiling. Giving us the command line that >resulted in this would be benificial. sigh... in my efforts to troubleshoot why cross compiled C executables are working under DOS / WIN32 and why cross compiled C++ executables are _not_ running under DOS / WIN32, i failed to realize that simply invoking gcc -Wl,--verbose wasn't acceptable to the linker with regards to main. When I specify gcc -Wl, --verbose file.cpp -o file.exe the linker undefined main error does not occur. >As far as I can see whatever you're compiling/linking don't have a >main() function. You are most correct. Thank you. Charles
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |