iLink32 removes bad functions from dlls then reports build success

Folks

In XE2 when building runtime dlls with iLink32 'build' reports success while 
quietly removing bad functions.

eg:-  App states
extern "C" __declspec(dllimport) String flabel(void);
dll states
extern "C" __declspec(dllexport) String flabel(void);

flabel is not exported

How do I instruct the linker to report failure instead of just quietly 
removing bad functions ?

John
0
John
8/3/2015 8:42:10 AM
embarcadero.cppbuilder.ide 2180 articles. 1 followers. Follow

4 Replies
300 Views

Similar Articles

[PageSpeed] 36

Sorry no direct solution, but,
What do you mean by...

"John Pearson" <john@NoSpam.co.uk> wrote in message 
news:729194@forums.embarcadero.com...
> Folks
>
> In XE2 when building runtime dlls with iLink32 'build' reports success 
> while
> quietly removing bad functions.
>

"bad functions" ?

What makes it/them "bad"?
0
david
8/3/2015 12:56:08 PM
"david hoke" <dhoke.nojunk@east-shore.com> wrote in message 
news:729202@forums.embarcadero.com...
> Sorry no direct solution, but,
> What do you mean by...

Hi David

App states
extern "C" __declspec(dllimport) String flabel(void);

dll states
extern "C" __declspec(dllexport) String flabel(void);

iLink32 links the dll without flabel()  !

A warning "W8127 Function defined with different linkage" is generated 
however.

A linker setting ? but where ?

John
0
John
8/3/2015 1:13:04 PM
John wrote:

> App states
> extern "C" __declspec(dllimport) String flabel(void);
>
> dll states
> extern "C" __declspec(dllexport) String flabel(void);
>
> iLink32 links the dll without flabel()  !
> 
> A warning "W8127 Function defined with different linkage" is generated
> however.

String is a class, which can only be used in C++, but you are exporting/linking 
the function as C, which does not support classes.  The String class is not 
safe to pass across the DLL boundary anyway, unless Runtime Packages are 
enabled in both DLL and EXE.  Otherwise, you need to change the design of 
the function to replace String with something else that is safer to use across 
the DLL boundary, and can be used in C.

-- 
Remy Lebeau (TeamB)
0
Remy
8/3/2015 9:09:22 PM
"Remy Lebeau wrote...

> String is a class, which can only be used in C++, but you are 
> exporting/linking
> the function as C, which does not support classes.  The String class is 
> not
> safe to pass across the DLL boundary anyway, unless Runtime Packages are
> enabled in both DLL and EXE.  Otherwise, you need to change the design of
> the function to replace String with something else that is safer to use 
> across
> the DLL boundary, and can be used in C.
>
> -- 
Noted.
I'll look at selecting C++ in the DLL wizard as simplest solution
John.
0
John
8/11/2015 7:01:07 AM
Reply:

Similar Artilces:

bad decision on removing sidebar function from history
Name: peter Email: opikopatyahoodotcom Product: Firefox Summary: bad decision on removing sidebar function from history Comments: bad decision on removing sidebar function from history i'm not sure why you did it, but it's very uncomfortable now, not to be able to see all my history visits on the browser window in the left vertical bar...as it was in previous of 3.0.4 versions.... now because of this i want to downgrade to previous version 2 Browser Details: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.4) Gecko/2008102920 Firefox/3.0.4 From URL: http:...

bad, bad, bad...
Name: Wayne Email: diverwayne0115atyahoodotcom Product: Firefox Summary: bad, bad, bad... Comments: you have managed to take an excellent browswer and pull it down to IE's level. Firefox 3.5 is TERRIBLE! There is no "native" support for tabs. You have to install add-ons to make it behave similar to prior releases. Tab-Mix should be automatically required for Firefox if you're not going to be better at tabs then IE... Browser Details: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1 (.NET CLR 3.5.30729) From URL:...

bad bad bad
Name: Paul Silverstein Email: paulsilv_at_bellsouth.net Product: Firefox 2 Beta 2 Summary: bad bad bad Comments: You have turned this product into pure garbage. I have lost all my bookmarks. I can not save my custom settings. Browser Details: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1b2) Gecko/20060821 Firefox/2.0b2 ...

superreview granted: [Bug 3004] Remove debug robot from build : [Attachment 306238] remove it from the build
jag (Peter Annema) <jag-mozilla@jag.dreamhost.com> has granted superreview: Bug 3004: Remove debug robot from build https://bugzilla.mozilla.org/show_bug.cgi?id=3D3004 Attachment 306238: remove it from the build https://bugzilla.mozilla.org/attachment.cgi?id=3D306238&action=3Dedit ------- Additional Comments from jag (Peter Annema) <jag-mozilla@jag.dreamhost.com> Just throwing this out there: robot isn't used by anything anymore.=0D =0D This patch doesn't include the removal of the robot directory and the files/dirs in it, see comment 14 for that.= ...

BAD BAD BAD
Name: patrick Product: Firefox Summary: BAD BAD BAD Comments: Since the upgrade from 2.0.0.12 firefox has been so slow that forums load so slow and images pathetically. check out forums.bodybuilding.com i can't even post there. it loads txt than images. i tried IE and it ran fine. I cant even back install to previous versions here. very very unhappy. its going so bad i have no choice but to go back to internet explorer. you guys need to revamp this. something was changed that compromised the ability to load pages well. Browser Details: Mozilla/5.0 (Windows; U;...

superreview granted: [Bug 237902] remove function OpenMessenger() and function OpenAddressbook() from navigator.js : [Attachment 144246] remove them
T Rowley (IBM) <tor@acm.org> has granted timeless@myrealbox.com (working) <timeless@bemail.org>'s request for superreview: Bug 237902: remove function OpenMessenger() and function OpenAddressbook() from navigator.js http://bugzilla.mozilla.org/show_bug.cgi?id=237902 Attachment 144246: remove them http://bugzilla.mozilla.org/attachment.cgi?id=144246&action=edit ...

Using stored procs/function calls to build report
I can build a report just fine and it usually works OK. I have written an extensive class library that returns many datasets for reporting. I want to use those function calls to return a dataset for my Crystal report and pass the function call the usual parameters, which are the parameters the stored proc wants. The problem seems to be that the report always returns the saved data, or asks me for a D user ID, password, etc. I do not want to connect to the database from the Crystal report. I just want to make the function call that returns a dataset and fill the report with that....

superreview cancelled: [Bug 337942] Remove some unused interface functions in address book : [Attachment 221984] Remove unused functions
Mark Banner <bugzilla@standard8.demon.co.uk> has cancelled Mark Banner <bugzilla@standard8.demon.co.uk>'s request for superreview: Bug 337942: Remove some unused interface functions in address book https://bugzilla.mozilla.org/show_bug.cgi?id=337942 Attachment 221984: Remove unused functions https://bugzilla.mozilla.org/attachment.cgi?id=221984&action=edit ------- Additional Comments from Mark Banner <bugzilla@standard8.demon.co.uk> I'm going to add the other function removal that I found to this patch before it gets reviewed... ...

superreview requested: [Bug 337942] Remove some unused interface functions in address book : [Attachment 221984] Remove unused functions
Mark Banner <bugzilla@standard8.demon.co.uk> has asked Dan Mosedale <dmose@mozilla.org> for superreview: Bug 337942: Remove some unused interface functions in address book https://bugzilla.mozilla.org/show_bug.cgi?id=337942 Attachment 221984: Remove unused functions https://bugzilla.mozilla.org/attachment.cgi?id=221984&action=edit ------- Additional Comments from Mark Banner <bugzilla@standard8.demon.co.uk> Simple patch to remove the unused functions as detailed in comment 0. ...

superreview requested: [Bug 337942] Remove some unused interface functions in address book : [Attachment 222051] Remove unused functions v2
Mark Banner <bugzilla@standard8.demon.co.uk> has asked Dan Mosedale <dmose@mozilla.org> for superreview: Bug 337942: Remove some unused interface functions in address book https://bugzilla.mozilla.org/show_bug.cgi?id=337942 Attachment 222051: Remove unused functions v2 https://bugzilla.mozilla.org/attachment.cgi?id=222051&action=edit ------- Additional Comments from Mark Banner <bugzilla@standard8.demon.co.uk> Revised patch adding in the removal of the other redundant function I found. ...

superreview granted: [Bug 337942] Remove some unused interface functions in address book : [Attachment 222051] Remove unused functions v2
David Bienvenu - not reading bug mail from May 10th-May 18th <bienvenu@nventure.com> has granted Mark Banner <bugzilla@standard8.demon.co.uk>'s request for superreview: Bug 337942: Remove some unused interface functions in address book https://bugzilla.mozilla.org/show_bug.cgi?id=337942 Attachment 222051: Remove unused functions v2 https://bugzilla.mozilla.org/attachment.cgi?id=222051&action=edit ------- Additional Comments from David Bienvenu - not reading bug mail from May 10th-May 18th <bienvenu@nventure.com> do we know that no extensions used get/set ...

superreview cancelled: [Bug 337942] Remove some unused interface functions in address book : [Attachment 221984] Remove unused functions #2
Mark Banner <bugzilla@standard8.demon.co.uk> has cancelled Mark Banner <bugzilla@standard8.demon.co.uk>'s request for superreview: Bug 337942: Remove some unused interface functions in address book https://bugzilla.mozilla.org/show_bug.cgi?id=337942 Attachment 221984: Remove unused functions https://bugzilla.mozilla.org/attachment.cgi?id=221984&action=edit ------- Additional Comments from Mark Banner <bugzilla@standard8.demon.co.uk> I'm going to add the other function removal that I found to this patch before it gets reviewed... ...

bad bad bad bad bookmarks!
Name: f Product: Firefox Summary: bad bad bad bad bookmarks! Comments: I utterly hate: hate-hate-hate-hate-hATE what you have done with bookmarks and bookmark filing. I used to be able to see all the options in front of me for filing a bookmark. With these last couple of versions I get a piddly non-sizeable window to scroll through -- it gives me a headache, and I can't see what I'm doing. And the new one-click is beyond a royal PITA. Can you please tell us how to still be able to see things on the web using your product, and have a reasonable way to deal with ...

Does nvo Destroy function remove dlls used by nvo from the memory
Hi All, I have an nvo which calls an external function from a dll. Obviously every time i create the nvo instance and call this external function, the dll is loaded into the memory. My question is when I destroy the nvo instance, does it remove the dll from the memory as well? The external dll function is defined in nvo's Local External functions area. Regards, Haroon No - destroying the NVO does not automatically unload any external function DLLs that may have been loaded. The reason is that the general usecase is that once you use the function once, you will proba...

Web resources about - iLink32 removes bad functions from dlls then reports build success - embarcadero.cppbuilder.ide

Talk:Trigonometric functions - Wikipedia, the free encyclopedia
This article is within the scope of WikiProject Mathematics , a collaborative effort to improve the coverage of Mathematics on Wikipedia. If ...

Four arrested after wedding brawl outside Westella Renaissance function centre
A crowd of people watched on as a violent brawl erupted between two groups outside a wedding reception venue in Sydney's west.

iPhone best tricks and functions - Business Insider
Your iPhone can do a lot more than you think.

Facebook Updates Search Function; Now Is A Great Time To Run And Check All Your Privacy Settings
Facebook search is… well, kind of a joke. It can tell you which 400 people in your area have similar names to that one person you want to connect ...

Review: HP Spectre 360 A Perfect Mix Of Style, Form, Function
HP Inc. delivers a brushed-aluminum laptop with a new 6th Generation Intel i7 processor, making it one of the best-looking, best-priced and best-performing ...

Add ‘laser beam’ to your iPhone’s long list of functions
Whether for presentations or driving your cat up the wall, laser pointers are as fun as they are useful. Given everything else an iPhone can ...

The Legend of Zelda: Tri Force Heroes has a blacklist function
I've been playing The Legend of Zelda: Tri Force Heroes for a good while now, and although I can't share all my thoughts until next week, I have ...

Why Global Corporations Need To Redesign Their Strategic Planning Function
Corporate strategy teams play an important role in guiding business leaders to make smarter, better and more informed decisions, especially in ...

Sponsored post: Garmin’s fenix 3 Pairs Form and Function with GPS Watch
... timepiece to polish off a professional look, or strap on a rugged stopwatch for our workouts. But when it comes to everyday use, the functional ...

Code Craft – Embedding C++: Timing Virtual Functions
... compiler just like the standard language types. A subtype inherits the characteristics of its parent type and can use, or not, the member functions ...

Resources last updated: 11/23/2015 7:27:20 AM