LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-21-2006, 02:23 AM   #1
Inbal
LQ Newbie
 
Registered: Jun 2006
Posts: 7

Rep: Reputation: 0
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
 
Old 06-21-2006, 05:16 AM   #2
imagineers7
Member
 
Registered: Mar 2006
Distribution: BackTrack, RHEL, FC, CentOS, IPCop, Ubuntu, 64Studio, Elive, Dream Linux, Trix Box
Posts: 310

Rep: Reputation: 30
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
 
Old 06-21-2006, 05:53 AM   #3
Inbal
LQ Newbie
 
Registered: Jun 2006
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks, It seems that I have been calling win OS functions.
 
  


Reply



Posting 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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
compilation question rkiel Linux - Software 1 04-26-2006 04:50 PM
Cross-Compilation Question lucky6969b Linux - Software 0 12-01-2005 07:31 PM
Gnome 2.4 - Compilation Question v00d00101 Red Hat 0 01-08-2004 04:39 AM
ask one question about the compilation china_forrest Programming 12 12-18-2003 10:01 PM
Compilation question. noelcantona Linux - Newbie 2 09-23-2003 11:22 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration