LinuxQuestions.org
Help answer threads with 0 replies.
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 12-05-2005, 04:09 PM   #1
manicman
Member
 
Registered: Oct 2005
Location: England (Southampton)
Distribution: Ubuntu 6.06 , Gentoo
Posts: 62

Rep: Reputation: 15
compiling from source


right now at the moment im having problems geting things to compile it works fine if i configure it first by going
Code:
./configure
make
sudo make install
but when it comes with its own make file it never works hear is the error i get this is for a program called arasan a chess program
Code:
mkdir -p ../build
mkdir -p ../export
mkdir -p ../profile
mkdir -p ../prof_data
g++ -O2 -fforce-mem -fomit-frame-pointer -march=i686   -Wall   -c -o ../build/ar                                                                            
asanx.o arasanx.cpp
In file included from board.h:6,
                 from arasanx.cpp:4:
types.h:53:25: error: strstream.h: No such file or directory
move.h:55: error: expected ‘,’ or ‘...’ before ‘&’ token
move.h:55: error: ISO C++ forbids declaration of ‘Board’ with no type
arasanx.cpp: In function ‘Move text_to_move(const Board&, const char*)’:
arasanx.cpp:135: error: no matching function for call to ‘CreateMove(const Boa                                                                            
rd&, Square&, Square&, PieceType&)’
move.h:55: note: candidates are: Move CreateMove(int)
move.h:58: note:                 Move CreateMove(Square, Square, PieceType, Piec                                                                            
eType, PieceType, SpecialType)
move.h:71: note:                 Move CreateMove(Square, Square)
move.h:81: note:                 Move CreateMove(Square, Square, PieceType, Piec                                                                            
eType)
arasanx.cpp:138: error: no matching function for call to ‘CreateMove(const Boa                                                                            
rd&, Square&, Square&, int)’
move.h:55: note: candidates are: Move CreateMove(int)
move.h:58: note:                 Move CreateMove(Square, Square, PieceType, Piec                                                                            
eType, PieceType, SpecialType)
move.h:71: note:                 Move CreateMove(Square, Square)
move.h:81: note:                 Move CreateMove(Square, Square, PieceType, Piec                                                                            
eType)
arasanx.cpp: In function ‘bool accept_draw(Board&)’:
arasanx.cpp:181: warning: comparison between signed and unsigned integer express                                                                            
ions
arasanx.cpp: In function ‘void doHint()’:
arasanx.cpp:879: warning: comparison between signed and unsigned integer express                                                                            
ions
arasanx.cpp:883: warning: comparison between signed and unsigned integer express                                                                            
ions
arasanx.cpp: In function ‘bool do_command(const char*, Board&)’:
arasanx.cpp:1533: error: ‘istrstream’ was not declared in this scope
arasanx.cpp:1533: error: expected `;' before ‘s’
arasanx.cpp:1535: error: ‘s’ was not declared in this scope
make: *** [../build/arasanx.o] Error 1
now i no this program works on my system beacuse it worked befor i recentley reformated and as far as i can tell nothing is differnt i get simalar errors when i do the same thing for other apps
 
Old 12-05-2005, 05:12 PM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 7,664

Rep: Reputation: 2439Reputation: 2439Reputation: 2439Reputation: 2439Reputation: 2439Reputation: 2439Reputation: 2439Reputation: 2439Reputation: 2439Reputation: 2439Reputation: 2439
When you get "missing file <strstream.h>", in my way of thinking ... that's the root problem and everything which follows is caused by it.

Find the file. Make sure that g++ can find the file.
 
Old 12-06-2005, 08:28 AM   #3
manicman
Member
 
Registered: Oct 2005
Location: England (Southampton)
Distribution: Ubuntu 6.06 , Gentoo
Posts: 62

Original Poster
Rep: Reputation: 15
ok ive found where the strstream.h is suposed to be and i dont have a strstream.h file but ive got one called strstream now ive found a strstream.h file on the internet but when i put this in the right direcotory i get this error
Code:
mkdir -p ../build
mkdir -p ../export
mkdir -p ../profile
mkdir -p ../prof_data
g++ -O2 -fforce-mem -fomit-frame-pointer -march=i686   -Wall   -c -o ../build/arasanx.o arasanx.cpp
move.h:55: error: expected ‘,’ or ‘...’ before ‘&’ token
move.h:55: error: ISO C++ forbids declaration of ‘Board’ with no type
arasanx.cpp: In function ‘Move text_to_move(const Board&, const char*)’:
arasanx.cpp:135: error: no matching function for call to ‘CreateMove(const Board&, Square&, Square&, PieceType&)’
move.h:55: note: candidates are: Move CreateMove(int)
move.h:58: note:                 Move CreateMove(Square, Square, PieceType, PieceType, PieceType, SpecialType)
move.h:71: note:                 Move CreateMove(Square, Square)
move.h:81: note:                 Move CreateMove(Square, Square, PieceType, PieceType)
arasanx.cpp:138: error: no matching function for call to ‘CreateMove(const Board&, Square&, Square&, int)’
move.h:55: note: candidates are: Move CreateMove(int)
move.h:58: note:                 Move CreateMove(Square, Square, PieceType, PieceType, PieceType, SpecialType)
move.h:71: note:                 Move CreateMove(Square, Square)
move.h:81: note:                 Move CreateMove(Square, Square, PieceType, PieceType)
arasanx.cpp: In function ‘bool accept_draw(Board&)’:
arasanx.cpp:181: warning: comparison between signed and unsigned integer expressions
arasanx.cpp: In function ‘void doHint()’:
arasanx.cpp:879: warning: comparison between signed and unsigned integer expressions
arasanx.cpp:883: warning: comparison between signed and unsigned integer expressions
arasanx.cpp: In function ‘bool do_command(const char*, Board&)’:
arasanx.cpp:1533: error: ‘istrstream’ was not declared in this scope
arasanx.cpp:1533: error: expected `;' before ‘s’
arasanx.cpp:1535: error: ‘s’ was not declared in this scope
make: *** [../build/arasanx.o] Error 1
now i do realease that useing any old strstream.h was probley a bad idea and i think the error is due to this so is there a way of configureing my own
 
  


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
compiling apt from source - where's the source? stynhx9000 Ubuntu 2 12-01-2005 07:32 AM
Compiling from source - How to gljubuncic Linux - Software 3 07-01-2005 06:10 PM
Compiling Source ripmaster Linux - Newbie 5 08-19-2004 01:02 AM
compiling software from source...how do i delete the folder w/ source? webazoid Linux - Software 2 07-01-2004 09:09 PM
Compiling from Source dguy Linux - Newbie 6 05-27-2002 11:48 AM


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