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 04-02-2011, 10:17 AM   #1
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
C++ compilation error


It keeps saying that there is no calss called "LangObject", even though it is defined and included everywhere. What should I do?

I tried making a smaller example but it doesn't seem to have that error. I have no idea what's wrong.
Attached Files
File Type: txt lang.tar.xz.txt (21.2 KB, 5 views)

Last edited by MTK358; 04-02-2011 at 10:56 AM.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 04-02-2011, 10:40 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
There is an error before `LangObject' was not declared... :

gcc/g++ 3.4 , 4.4.1 :
lib/table.hh:13: error: syntax error before `{' token
lib/table.hh:18: error: `LangObject' was not declared in this scope

gcc/g++ 3.3.3 , 3.3.6 :
lib/table.hh:13: error: syntax error before `{' token
lib/table.hh:16: error: destructors must be member functions
lib/table.hh:18: error: `LangObject' was not declared in this scope

When you pack files : The Linux way is to use a "top directory".
And the naming is wrong : Your package is an "archive.tar.gz.txt"
'xz' is only when lzma compression is used.

..
 
Old 04-02-2011, 10:56 AM   #3
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443

Original Poster
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Quote:
Originally Posted by knudfl View Post
There is an error before `LangObject' was not declared... :

gcc/g++ 3.4 , 4.4.1 :
lib/table.hh:13: error: syntax error before `{' token
lib/table.hh:18: error: `LangObject' was not declared in this scope

gcc/g++ 3.3.3 , 3.3.6 :
lib/table.hh:13: error: syntax error before `{' token
lib/table.hh:16: error: destructors must be member functions
lib/table.hh:18: error: `LangObject' was not declared in this scope
So?

If LangObject was declared, that would fix that error, wouldn't it?

Quote:
When you pack files : The Linux way is to use a "top directory".
I overlooked that.

Quote:
And the naming is wrong : Your package is an "archive.tar.gz.txt"

'xz' is only when lzma compression is used.
I just used used the Ark archive manager, and told it to use XZ.

I edited the original post with a corrected archive.
 
Old 04-02-2011, 07:32 PM   #4
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
table.hh has the same include guard as lang_object.hh
 
2 members found this post helpful.
  


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
unable to resolve compilation error;./List.c:5: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ amolgupta Programming 3 01-09-2009 10:09 AM
Inkscape compilation error: *** [extension/internal/pdfinput/pdf-parser.o] Error 1 w1k0 Slackware 12 10-25-2008 09:53 AM
compilation error : /tmp/cczC6Kc3.s:7368: Error: unknown pseudo-op: `.ltorg' nankie Red Hat 0 08-19-2008 10:15 AM
Error during the compilation of Prozilla. How to correct the recursive error? deepumnit Linux - Software 1 01-10-2008 11:02 AM
Kernel compilation error: Error 15: File not found Niceman2005 Linux - General 9 10-04-2007 03:45 AM

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

All times are GMT -5. The time now is 01:21 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