Article View: borland.public.cppbuilder.internationalization
Article #274BCB6 Linker error on a program that works with VC++6
From: Cosmic Gremlin
Date: Tue, 19 Oct 2004 18:09
Date: Tue, 19 Oct 2004 18:09
33 lines
2141 bytes
2141 bytes
I made a project involving unicode that I developed on MS-VC++6 SP6. It runs and performs exactly what it's meant to. Since I'm not a Microsoft fan, I wanted to build with Borland's C++ Builder 6 (with all recent updates.) After changing two function calls, it compiled OK. Yet, it won't link and I got this error. "[Linker Error] Unresolved external '_main' referenced from C:\PROGRAM FILES\BORLAND\CBUILDER6\LIB\C0X32.OBJ" against which I'm totally clueless. Help wasn't 'helpfull' either. I tried C++Builder 5.5.1 and got the same error- naturally with a different path. These're the 'includes' in the program: #include <iostream> #include <deque> //Backbone storage container for this program #include <algorithm> //for find() working on the deque #include <io.h> //for Windows search __wfind ..etc #include <process.h> //for _P_DETACH #include <fcntl.h> //for _wopen #include <sys/stat.h> //for _S_ISREAD ...etc #include <string> Notes: 1. BCB is installed in its default path. 2. I did inlucde _UNICODE in 'conditional defines' in project settings. All other settings are defaults, just as I did VC++6. 3. Adding #include <tchar.h> or <wchar.h> has no effect. 4. BCB and VC++ are on different machines running Windows XP Pro SP2. Any help would be appreciated.
Technical Details
Message-ID:
<41755869$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!fu-berlin.de!newsfeed.iinet.net.au!newsfeed.iinet.net.au!PeerFeed.KWeb.on.ca!news.kweb.on.ca!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10297d,93ff402042da1f9c,start X-Google-Attributes: gid10297d,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Cosmic Gremlin" <cosmicgremlin@yahoo.com> Sender: "Cosmic Gremlin" <cosmicgremlin@yahoo.com> Reply-To: "Cosmic Gremlin" <cosmicgremlin@yahoo.com> Subject: BCB6 Linker error on a program that works with VC++6 Newsgroups: borland.public.cppbuilder.internationalization X-User-Info: 81.4.46.140 NNTP-Posting-Host: 207.105.83.66 Message-ID: <41755869$1@newsgroups.borland.com> Date: 19 Oct 2004 11:09:45 -0700 X-Trace: newsgroups.borland.com 1098209385 207.105.83.66 (19 Oct 2004 11:09:45 -0700) Lines: 35 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!fu-berlin.de!newsfeed.iinet.net.au!newsfeed.iinet.net.au!PeerFeed.KWeb.on.ca!news.kweb.on.ca!newsgroups.borland.com!not-for-mail