Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: $L object.o which format?



Permlink Replies: 2 - Last Post: Aug 17, 2016 7:21 AM Last Post By: Roberto Della P...
Roberto Della P...

Posts: 83
Registered: 4/8/12
$L object.o which format?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 16, 2016 11:21 AM
hello,
I'm trying to link a static c object through $L directive in dccosx,
but I get E2045 bad file format,

I have compiled the c code in OSX 10.11 using cc and with clang with target i386-apple-darwin -m32, in both cases the resulting object isn't embeddable.
Any hint?

thanks
R.
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: $L object.o which format?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 16, 2016 11:38 AM   in response to: Roberto Della P... in response to: Roberto Della P...
Roberto wrote:

I'm trying to link a static c object through $L directive in dccosx,
but I get E2045 bad file format,
I have compiled the c code in OSX 10.11 using cc and with clang with
target i386-apple-darwin -m32, in both cases the resulting object
isn't embeddable.

Per the documentation:

http://docwiki.embarcadero.com/RADStudio/en/DCCOSX

For OSX, .o files need to be in ELF format.

--
Remy Lebeau (TeamB)
Roberto Della P...

Posts: 83
Registered: 4/8/12
Re: $L object.o which format?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 17, 2016 7:21 AM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...
Remy Lebeau (TeamB) wrote:
Roberto wrote:

I'm trying to link a static c object through $L directive in dccosx,
but I get E2045 bad file format,
I have compiled the c code in OSX 10.11 using cc and with clang with
target i386-apple-darwin -m32, in both cases the resulting object
isn't embeddable.

Per the documentation:

http://docwiki.embarcadero.com/RADStudio/en/DCCOSX

For OSX, .o files need to be in ELF format.

--
Remy Lebeau (TeamB)

Oh my poor brain...indeed I was trying with darwin machO i686
Thanx for the help
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02