The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Reg expression For Harikrishna Shell Programming and Scripting 2 05-06-2008 10:40 PM
nawk empty regular expression error Rjkz Shell Programming and Scripting 6 12-21-2007 08:07 AM
OR expression Rock UNIX for Dummies Questions & Answers 3 05-03-2007 05:50 AM
Regular Expression + Aritmetical Expression Z0mby Shell Programming and Scripting 2 05-21-2002 07:59 AM
compound expression in unix spalmer UNIX for Dummies Questions & Answers 3 10-19-2001 09:04 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #8  
Old 11-14-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
1. Where is the error being raised? During compilation of which file, and what line does the line number indicate?

2. Do you have a common header file defining the prototype for "setup_ipc()"?
Reply With Quote
Forum Sponsor
  #9  
Old 11-14-2007
Registered User
 

Join Date: Sep 2007
Posts: 62
Also I want to tell that I am using Makefile for compilation of my code and I had created my makefile with the help of qmake tool....

error being raised during compilation......in main.cpp file

and error was in main.cpp indicating line having that function call------->>>>
setup_ipc("msqueue",1234,INPUT_IPC,LARGE_QUEUE);

Also i am using the common header file for defining the prototype of setup_ipc()..
Reply With Quote
  #10  
Old 11-14-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
It looked like it was trying to treat setup_ipc as a variable rather than a function.

Do you use

Code:
extern "C" 
{
...
}
around function declarations?
Reply With Quote
  #11  
Old 11-14-2007
Registered User
 

Join Date: Sep 2007
Posts: 62
no I hadn't used extern

I had made the change that is :::::::
collecting whatever my function is returning like this::::::::
i=setup_temp_ipc("msqueue",1234,INPUT_IPC,LARGE_QUEUE);

then its compiled correctly without any error....
Reply With Quote
  #12  
Old 11-15-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
So what is setup_temp_ipc()? I thought you had a function called setup_ipc().
Reply With Quote
  #13  
Old 11-16-2007
Registered User
 

Join Date: Sep 2007
Posts: 62
oh.....sorry thats another function...........

I mean to say that I had used....
i=setup_ipc("msqueue",1234,INPUT_IPC,LARGE_QUEUE);
instead of
just calling ::
setup_ipc("msqueue",1234,INPUT_IPC,LARGE_QUEUE);
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 04:59 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0