🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #342

Re: Function export problem when porting MSC code to BC 2.0

#342
From: James A. Mullens
Date: Mon, 13 Apr 1992 22:12
25 lines
1594 bytes
In article <92Apr10.183524edt.144354@explorer.dgp.toronto.edu>, jinli@dgp.toronto.edu (Jin Tonic Li) writes:
|> 
|> I am porting a windows app written with MSC 6.0 and SDK 3.0 to BC++ 2.0
|> The C source codes compiled fine with minor changes to associate function
|> prototypes with each individual module vs putting all of them in one 
|> .h file and include it in all module files.
|> 
|> However, the linker gives warning about exporting dialog functions:
|> 
|> 	Attempt to export non-public symbol XXXXX
|> 
|> where XXXXX is the name of the dialog function.  The dialogs are called
|> through MakeProcInstance(XXXXX, hInst) which are all listed under
|> EXPORTS in .def file.
|> 
|> I have tried the options All windows functions exportable and Explicit
|> export for BC++ 2.0  The linker still gives the same warning.
|> 

Try removing the export statements from the .DEF file, and keep the _export
on the function declaration in your code.  Remember, C++ does name mangling.

jim mullens
mullens@jamsun.ic.ornl.gov (128.219.64.31)
voice: 615-574-5564
Technical Details
Message-ID: <1992Apr13.221218.21233@ornl.gov>
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!mips!swrinde!gatech!utkcs2!ornl!jamsun.ic.ornl.gov!mullens
References: <92Apr10.183524edt.144354@explorer.dgp.toronto.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!mips!swrinde!gatech!utkcs2!ornl!jamsun.ic.ornl.gov!mullens
From: mullens@jamsun.ic.ornl.gov (James A. Mullens)
Newsgroups: comp.windows.ms.programmer
Subject: Re: Function export problem when porting MSC code to BC 2.0
Message-ID: <1992Apr13.221218.21233@ornl.gov>
Date: 13 Apr 92 22:12:18 GMT
References: <92Apr10.183524edt.144354@explorer.dgp.toronto.edu>
Sender: usenet@ornl.gov (News poster)
Distribution: na
Organization: Oak Ridge National Laboratory
Lines: 25