Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Previous declaration in Linux to OS X Port

Previous declaration in Linux to OS X Port
Thread Tools
smitty825
Forum Regular
Join Date: Sep 2003
Location: San Diego
Status: Offline
Reply With Quote
Mar 3, 2007, 02:33 PM
 
Hey all...I'm attempting to port an application over from Linux to OS X. When I attempt to compile the application, I get an error that there are conflicting types for the function "signal".

The program I am porting over uses signals (from the c library...ie. #include <signal.h>) to run timers and such.

However, in a different part of the code, it defines a static C function called "signal", which is used for hardware specific signals.

I've been able to compile this app using the same makefile just fine under both Ubuntu Linux & Gentoo Linux (both i386 systems). I can't figure out how to fix this namespace issue. Any suggestions? (I'm running a G4 Powerbook)
     
Tomchu
Mac Elite
Join Date: Sep 2005
Status: Offline
Reply With Quote
Mar 3, 2007, 06:53 PM
 
Why not just change all references to the "foreign" signal to something else, so they can both co-exist?
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not 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
Top
Privacy Policy
All times are GMT -4. The time now is 06:53 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,