This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: name mangeling


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]