Compilation error


 
Thread Tools Search this Thread
Top Forums Programming Compilation error
# 1  
Old 10-23-2007
Compilation error

I am compiling a software xchm on solaris 10.
First i run './configure'
There is no error.

But when i start compiling using 'gmake'
following error shown

/usr/local/include/wx-2.6/wx/x11/brush.h: In copy constructor `wxBrush::wxBrush(const wxBrush&)':
/usr/local/include/wx-2.6/wx/x11/brush.h:42: warning: base class `class wxBrushBase' should be explicitly initialized in the copy constructor
In file included from /usr/local/include/wx-2.6/wx/listbox.h:141,
from /usr/local/include/wx-2.6/wx/checklst.h:17,
from /usr/local/include/wx-2.6/wx/wx.h:55,
from ./chmframe.h:25,
from chmhtmlwindow.cpp:27:
/usr/local/include/wx-2.6/wx/motif/listbox.h: At global scope:
/usr/local/include/wx-2.6/wx/motif/listbox.h:103: warning: unused parameter 'item'
/usr/local/include/wx-2.6/wx/motif/listbox.h:103: warning: unused parameter 'x'
chmhtmlwindow.cpp: In member function `void CHMHtmlWindow::OnCopyLink(wxCommandEvent&)':
chmhtmlwindow.cpp:376: error: `wxTextDataObject' has not been declared
gmake[2]: *** [chmhtmlwindow.o] Error 1
gmake[2]: Leaving directory `/opt/softwares/xchm-1.9/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/opt/softwares/xchm-1.9'
gmake: *** [all] Error 2


Please help me and tell me what is this error and how to solve this problem
# 2  
Old 10-23-2007
Are you using g++ or Sun's Studio-11?
# 3  
Old 10-23-2007
Both g++ and sunstudio 11 installed on my system and make project using gmake
# 4  
Old 10-23-2007
It basically looks like you've got some C++ compilation problems to solve.

I would recommend ensuring that gcc and g++ are used, if that does not solve the problem then you have some work to do fixing somebody's C++ code.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

Compilation Error

I am getting the below given errors for the following program though all the variables have been declared and used appropriately. Please Help. The environment is AIX. Error: ------ "gbsizeprofile.c", line 67.4: 1506-275 (S) Unexpected text 'void' encountered. "gbsizeprofile.c", line 67.10:... (2 Replies)
Discussion started by: yschd
2 Replies

2. Shell Programming and Scripting

Pro*c compilation error

Hi, Recently our codes have been migrated to new server, whenever we compile any pro*c programs we receive the following errorl. please help >> make -f lib_util.mk all CC= ucbcc 4Compiling lib_util ### command line files and options (expanded): ### -xO3 -DNULL=0 -v -o lib_util.o... (1 Reply)
Discussion started by: satvd
1 Replies

3. Programming

pro*c compilation error

Hi, Recently our codes have been migrated to new server, whenever we compile any pro*c programs we receive the following errorl. please help >> make -f lib_util.mk all CC= ucbcc 4Compiling lib_util ### command line files and options (expanded): ### -xO3 -DNULL=0 -v -o lib_util.o... (0 Replies)
Discussion started by: satvd
0 Replies

4. Programming

Compilation error : Please help

state_field state_abvr = { "AL","ALABAMA", "AK","ALASKA", "AZ","ARIZONA", "AR","ARKANSAS", "CA","CALIFORNIA", "CO","COLORADO", "CT","CONNECTICUT", "DE","DELAWARE", "DC","DISTRICT-OF-COLUMBIA", "FL","FLORIDA", "GA","GEORGIA", "HI","HAWAII", "ID","IDAHO", "IL","ILLINOIS",... (1 Reply)
Discussion started by: jagan_kalluri
1 Replies

5. UNIX for Dummies Questions & Answers

Need help in resolving Compilation error

state_field state_abvr = { "AL","ALABAMA", "AK","ALASKA", "AZ","ARIZONA", "AR","ARKANSAS", "CA","CALIFORNIA", "CO","COLORADO", "CT","CONNECTICUT", "DE","DELAWARE", "DC","DISTRICT-OF-COLUMBIA", "FL","FLORIDA", "GA","GEORGIA", "HI","HAWAII", "ID","IDAHO", "IL","ILLINOIS",... (1 Reply)
Discussion started by: jagan_kalluri
1 Replies

6. HP-UX

compilation error

hello everyone, here i am attempting to compile a c++ submodule.OS is HP-UX. here i am getting the following error. ====================================== "Make: Don't know how to make compile. Stop." =================================== could you pls somebody suggest why this error is... (2 Replies)
Discussion started by: mannam srinivas
2 Replies

7. Linux

c++ compilation error

Hello every one, here i am attempting to compile a c++ module using gcc.it is throwing a error . error: ==== > make -S dummyCHARGP /usr/local/bin/gcc -g -DDEBUG -DMAT -I. -I/swtemp/usbs/cc/unix-ce/root/subsys/lib/Linux/ -I/opt/dce/include -I/opt/dce/include/dce ... (12 Replies)
Discussion started by: mannam srinivas
12 Replies

8. Solaris

Solaris : compilation error

Hi All, while building, i am receiving the following error...... Undefined first referenced symbol in file void os_directory::create(const std::string &) obj.release/BOConfig.o (symbol belongs to implicit dependency... (2 Replies)
Discussion started by: vinod_kumar_k
2 Replies

9. Programming

compilation error

Hi, While trying compile a C++ file in UNIX with gcc whose make rule involves the usage of /usr/ccs/bin/as, I get the following error: /usr/ccs/bin/as: No such file or directory /usr/ccs/bin/as: error: write error on output file "<filename>.o" *** Error code 1 clearmake: Error: Build... (2 Replies)
Discussion started by: smanu
2 Replies

10. Programming

Regarding compilation error.

Hi All, I facing the following compilation error; when I implementing the following logic. ostrstream ostr; ostr << (( scAxsm.getRecord( i ).getField( 2 ).getShort())%12)!=0?(( scAxsm.getRecord( i ).getField( 2 ).getShort())/12+1) : (( scAxsm.getRecord( i ).getField( 2 ).getShort())/12) <<... (1 Reply)
Discussion started by: sweta
1 Replies
Login or Register to Ask a Question