473,325 Members | 2,671 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

-output-def, -soname using gcc

Hi everybody:

I am developing a library using mingw (windows).
I created my binary files (.dll), my library file (.a) and my def file
(.def) using g++ -output-def=XXX -soname=XXX

The problem happened when I ported my library to linux and tried to
compile using g++. The .a and the .def file are missing because g++
did not recognize the -output-def=XXX and the -soname parameter and
threw an error message like this:

utput-def=XXX file not found.

Am I right or am I doing something wrong?

Best regards

Ernesto
Jul 22 '05 #1
4 6720
Ernesto wrote:
I am developing a library using mingw (windows).
I created my binary files (.dll), my library file (.a) and my def file
(.def) using g++ -output-def=XXX -soname=XXX

The problem happened when I ported my library to linux and tried to
compile using g++. The .a and the .def file are missing because g++
did not recognize the -output-def=XXX and the -soname parameter and
threw an error message like this:

utput-def=XXX file not found.

Am I right or am I doing something wrong?


You're posting to a wrong newsgroup. You need gnu.g++.help. If
that doesn't do, try comp.os.linux.development.* hierarchy.

Victor
Jul 22 '05 #2

"Ernesto" <eb*****@hotmail.com> wrote in message
news:f7**************************@posting.google.c om...
Hi everybody:

I am developing a library using mingw (windows).
I created my binary files (.dll), my library file (.a) and my def file
(.def) using g++ -output-def=XXX -soname=XXX

The problem happened when I ported my library to linux and tried to
compile using g++. The .a and the .def file are missing because g++
did not recognize the -output-def=XXX and the -soname parameter and
threw an error message like this:

utput-def=XXX file not found.

Am I right or am I doing something wrong?


Well your compile is failing so I don't see how you could think you are
right. What you are doing wrong is thinking that all compilers operate in
the same way. You should read the documentation on g++ and find out how to
use it.

john
Jul 22 '05 #3
"John Harrison" <jo*************@hotmail.com> wrote in message news:<2s*************@uni-berlin.de>...
"Ernesto" <eb*****@hotmail.com> wrote in message
news:f7**************************@posting.google.c om...
Hi everybody:

I am developing a library using mingw (windows).
I created my binary files (.dll), my library file (.a) and my def file
(.def) using g++ -output-def=XXX -soname=XXX

The problem happened when I ported my library to linux and tried to
compile using g++. The .a and the .def file are missing because g++
did not recognize the -output-def=XXX and the -soname parameter and
threw an error message like this:

utput-def=XXX file not found.

Am I right or am I doing something wrong?


Well your compile is failing so I don't see how you could think you are
right. What you are doing wrong is thinking that all compilers operate in
the same way. You should read the documentation on g++ and find out how to
use it.

john


Hi john:

mingw is just a gcc port to windows that implements a set of header
files in order to access to the win32api, but the compiler options are
the same because the c++ toolchain is the same as unix gcc.

Regards

ernesto
Jul 22 '05 #4
On Fri, 01 Oct 2004 16:23:46 -0700, Ernesto wrote:
Hi everybody:

I am developing a library using mingw (windows).
I created my binary files (.dll), my library file (.a) and my def file
(.def) using g++ -output-def=XXX -soname=XXX

The problem happened when I ported my library to linux and tried to
compile using g++. The .a and the .def file are missing because g++
did not recognize the -output-def=XXX and the -soname parameter and
threw an error message like this:

utput-def=XXX file not found.

Am I right or am I doing something wrong?


This is way, way, *way* off-topic here, as we discuss the language itself,
not implementations of and not the tools. Nonetheless, I suspect you
won't go away until you get what you're after, so here's the scoop:

There is no -output-def under linux. Linux shared objects (at least
ELF .so files) don't need an external file to tell the linker where in the
shared object various functions and data reside -- that information is
packed as part of the library itself. Instead, gcc is parsing
-output-def=XXX as "-o" "utput-def=XXX"; the -o option specifies the name
of an output file and the rest is the filename.

<http://en.tldp.org/HOWTO/Program-Library-HOWTO/index.html> has a lot more
information, including a discussion of the limitations ld.so imposes on
C++ use.

--
Some say the Wired doesn't have political borders like the real world,
but there are far too many nonsense-spouting anarchists or idiots who
think that pranks are a revolution.

Jul 22 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Mehul Patel | last post by:
Our .Net team have been pondering about using keyword. We are using streams FileStream and BufferedStream. We use using keyword at FileStream, and not BufferedStream which wraps FileStream. So...
2
by: rawCoder | last post by:
Hi All, I have a *.cer file, a public key of some one and I want to encrypt some thing using this public key. Can someone point me to a sample code for Encrypting some file using...
1
by: Mike | last post by:
When trying to compile (using Visual Web Developer 2005 Express Beta; frameworkv2.0.50215 ) the source code below I get errors (listed below due to the use of ICallBackEventHandler. Ultimately I...
4
by: Marshall Mills | last post by:
As I understand it, loaded statement, a using declaration should be all I need to see an enum from within a namespace. The below code works fine with class, struct, and union. What gives? As the...
10
by: Christopher Benson-Manica | last post by:
Why can't I use a class destructor in a using declaration: using MyClass::~MyClass; ? -- Christopher Benson-Manica | I *should* know what I'm talking about - if I ataru(at)cyberspace.org ...
17
by: beliavsky | last post by:
Many of my C++ programs have the line using namespace std; but the "Accelerated C++" book of Koenig and Moo has many examples where the library names are included one at a time, for example ...
2
by: trying_to_learn | last post by:
im in the primary stages of learning C++. The book im learning from says Dont use using namespace.. directive in header file However im trying to make the following header file.I need to include...
8
by: Petter Reinholdtsen | last post by:
I ran into a problem on HP-UX 11.00 the other day, where it refused to compile a program using 'using namespace std;' at the top. The reason seem to be that the compiler refuses to accept 'using...
14
by: john.burton.email | last post by:
I've done some extensive searching and can't seem to find an answer to this - Is it correct to using "using" with templates, for example: using std::vector; Or do I need to specify the type...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.