This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: name mangeling
- To: Mirko Vogel <mirko_vogel at web dot de>
- Subject: Re: name mangeling
- From: Preeti <preeti at wcl1 dot tamu dot edu>
- Date: Tue, 14 Aug 2001 17:08:23 -0500 (CDT)
- cc: gcc-help at gcc dot gnu dot org
Hi
I am having a lot of trouble running a Random number generator with a
seed.
I am trying to get the seed from the system time, but gcc does not seem to
recognise the localtime function defined in time.h
Any suggestions will be appreciated.
Thank you
Preeti
On Tue, 14 Aug 2001, Mirko Vogel wrote:
> Hello,
>
> I have to use a big amount of already written code in a project developed
> under Microsoft Visual C++. Since this MSVC isn't able to compile the stuff,
> I tried to compile it with cygwin (windows port of GCC) - works fine, of
> course - and create a static linked library with ar. Unfortunately GCC and
> MSVC do different name mangeling (is that the correct term?), so that the
> last one doesn't find anything in the library:
>
> E.g.: vocabulary::vocabulary(unsigned int) becomes ??0vocabulary@@QAE@I@Z
> (MSVC) or ___10vocabularyUi (GCC).
>
> What can I do?
>
> Mirko Vogel
>
>
>
- Preeti
@@@
@^ ^@
@ O O @
@\ V /@
@@ @@
------------------------------------------------------------------------
Luck favours the prepared mind.
- Louis Pasteur