LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   compilation question (https://www.linuxquestions.org/questions/programming-9/compilation-question-456841/)

Inbal 06-21-2006 02:23 AM

compilation question
 
Hi there,

I'm new to the linux world and trying to compile a project that worked on windows OS. I'm trying to fit it to Linux. After compiling with gcc I got this error msg
"ISO C++ forbids declaration of ` __declspec' with no type"
What does it mean, and how can I fix it?

Thanks for any kind of help...

--Inbal

imagineers7 06-21-2006 05:16 AM

Hello Inbal,

Welcome to Linux Questions!

First thing:- Had you used some os specific code?
another:- The error message says:- you are violating ISO C++ standard. You wont need to resurrect the code but you will have to make changes in it to fit into ISO standard and your programs will run (If you have not made any os specific calls)

Assume this to be a hint and you will have to work a lot on it.

Bye

Inbal 06-21-2006 05:53 AM

Thanks, It seems that I have been calling win OS functions.


All times are GMT -5. The time now is 05:26 AM.