OpenSolaris Solaris Forum  
     

Left Nav FAQ Members List Default Password Members List Linux Commands Search Today's Posts Mark Forums Read Right Nav

Left Container Right Container
 

Go Back   OpenSolaris Solaris Forum Solaris General

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-21-2011, 03:47 PM
MKlein
Guest
 
Posts: n/a
Default Problem g++ Solaris

Hello guys!

I'm compiling a C++ code in Solaris and a strange thing is happening.

g++ says that almost every method used from external libraries as undefined.

For example:
To use the method "kill" in C/C++, i must include the lib "signal.h".
So, i include the lib ans use the method but, when i run the g++ compiler, he says that the method kill is undefined.

But, if i redeclare the kill prototype in my header code, everything works well.

I imagine that some Solaris flag is not set and, once almost all methods in Linux libraries are enclosed of macros, maybe this flag are avoiding the lib header not enter in some macro.

I already compiled this code in Linux and AIX, and didn't have this kind of problem.

Thank you guys for your attention!
Reply With Quote
Sponsored Links

Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disk problem in Solaris FSCK xpert Hardware Problems 0 12-08-2008 07:07 PM


All times are GMT. The time now is 12:01 PM.


Powered by vBulletin. Copyright 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.