LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-30-2006, 04:33 PM   #1
pg-savior
LQ Newbie
 
Registered: May 2006
Posts: 7

Rep: Reputation: 0
C++ errors "making" downloaded programs


i was wondering why i get C/C++ errors whenever i try and make a program. For instance: I want to install Zinf so I downloaded it... and I cd to its dir and try to "make" it. I get these errors:

../../base/include/queue.h: In member function 'bool Queue<T>::IsEmpty()':
../../base/include/queue.h:165: error: there are no arguments to 'assert' that depend on a template parameter, so a declaration of 'assert' must be available
../../base/include/queue.h:165: error: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
../../base/include/queue.h: In member function 'void Queue<T>::GetLock()':
../../base/include/queue.h:170: error: there are no arguments to 'assert' that depend on a template parameter, so a declaration of 'assert' must be available
../../base/include/queue.h: In member function 'void Queue<T>::ReleaseLock()':
../../base/include/queue.h:176: error: there are no arguments to 'assert' that depend on a template parameter, so a declaration of 'assert' must be available
../../base/include/properties.h: At global scope:
../../base/include/properties.h:65: warning: 'class PropertyWatcher' has virtual functions but non-virtual destructor
../../base/include/player.h:158: error: extra qualification 'Player::' on member 'SetEQData'
../../base/include/player.h:164: error: extra qualification 'Player::' on member 'SendVisBuf'

Since this didn't work, I tried to install another player (mpg123) and I got more C/C++ errors... I also get errors trying to "make all" when attempting to install my wireless drivers. Is there something I'm doing wrong? Are all of the programs I download conveniently mis-coded? What can I do to install programs without having to try and modify the code and have it possibly not work again?

I'm running SuSE 10.1 currently and btw I'm completely new to Linux. Any help I would really appreciate
 
Old 05-31-2006, 09:11 AM   #2
merchtemeagle
Member
 
Registered: Oct 2004
Location: Belgium
Distribution: Slackware 13.37
Posts: 512

Rep: Reputation: 31
You are not forgetting the ./configure step, are you?
 
Old 06-01-2006, 09:38 PM   #3
pg-savior
LQ Newbie
 
Registered: May 2006
Posts: 7

Original Poster
Rep: Reputation: 0
no i configure them...

also, i was thinking that maybe it is because my compiler version is too high? is that a possibility? i have gcc 4.1.0
 
Old 06-01-2006, 09:58 PM   #4
merchtemeagle
Member
 
Registered: Oct 2004
Location: Belgium
Distribution: Slackware 13.37
Posts: 512

Rep: Reputation: 31
What is the output of the ./configure command?
 
Old 06-02-2006, 07:28 AM   #5
pg-savior
LQ Newbie
 
Registered: May 2006
Posts: 7

Original Poster
Rep: Reputation: 0
It is successful, but I found a line of interest

In zinf:
checking dependency style of gcc... gcc3

I don't have time to check any other programs right now... but
I will finish this post and give more compiler output later.
 
Old 06-02-2006, 07:42 AM   #6
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Posts: 3,366
Blog Entries: 33

Rep: Reputation: 216Reputation: 216Reputation: 216
You may also need the minor version of c

gcc.x.x.x or something

or is it cpp.x.x.x I think the minor version is 2.9.4

Ver 4.10 is ok, but you may also need 3.4

glibc is important too, but you don't want to change that.

You might check out the LQ wiki. There's a huge install guide there.

Last edited by GlennsPref; 06-02-2006 at 07:45 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
"NIM thread blocked" & "Deadman Switch (DMS) close to trigger" errors sosborne Linux - Networking 1 06-28-2006 03:07 PM
"NIM thread blocked" & "Deadman Switch" errors sosborne AIX 3 06-01-2006 12:21 PM
how do you install programs extracted from "tar.gz", "bz2", etc? shoelessworm Ubuntu 13 04-12-2006 03:24 PM
How do I install (GPHOTO2)? I downloaded the "tar.gz" file online. Balarabay1 SUSE / openSUSE 3 03-21-2006 11:13 PM
FC4 install errors, "diabling IRQ #10" "nobody cares" error message??? A6Quattro Fedora 6 07-20-2005 01:49 PM


All times are GMT -5. The time now is 02:42 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration