c++ compilation error


Login or Register for Dates, Times and to Reply

 
Thread Tools Search this Thread
Operating Systems Linux c++ compilation error
# 1  
PHP 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 -I/swtemp/usbs/cc/unix-ce/root/subsys/cb/cdbc/include -I/swtemp/usbs/cc/unix-ce/root/subsys/include -I/swtemp/usbs/cc/unix-ce/root/3pp/include/Linux -I/swtemp/usbs/cc/unix-ce/root/3pp/include/ -DSNACC_DEEP_COPY -I/swtemp/usbs/cc/unix-ce/root/subsys/cb/cdbc/obj_0001/Linux -g -c -DUSE_FREE_DCE -D_GNU_SOURCE -DLINUX -DIDL_CHAR_IS_CHAR -D_REENTRANT -fsigned-char -DCXX_VERSION= -DSNACC_DEEP_COPY -D_GLIBCPP__DCE_THREADS -c -o /swtemp/usbs/cc/unix-ce/root/subsys/cb/cdbc/obj_0001/Linux/cdbm_dummy.o
gcc: no input files
*** Error exit code 1


can somebody helps me regarding this issue.I am searching for the same on internet,but no information.


withregardds,
mannam
# 2  
Looks like your Makefile doesn't say which file to compile.
# 3  
PHP

Hello era,
thank you very much for u r reply,
here dummyCHARGP is the target(input file).


with regards,
mannam
# 4  
Use g++ instead of gcc
# 5  
Maybe the Makefile would work better if you renamed it to have a .cpp extension. Otherwise, don't tell us what you want to compile; tell the Makefile. (^:
# 6  
PHP

Hello era,
could u pls explain what do you mean by "Maybe the Makefile would work better if you renamed it to have a .cpp extension" iam not clear.


with regards,
mannam
# 7  
Sorry for the fuzzy answer before; I meant rename the source file.

Code:
mv dummyCHARGP dummyCHARGP.cpp

Maybe edit the Makefile to reflect this change.

I'm speculating that you have a very simple makefile and expect it to automatically derive the dependencies, but it can only do this correctly if the file name has an extension it recognizes.
Login or Register for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #464
Difficulty: Medium
chrony was developed and written in Python.
True or False?

10 More Discussions You Might Find Interesting

1. Programming

Java compilation error

i am on red hat Linux . package hiveudf; import org.apache.hadoop.hive.ql.exec.UDF; import org.apache.hadoop.io.Text; public class lowercaseudf extends UDF { public Text evaluate(final Text s) { if (s == null) { return null;} return new... (4 Replies)
Discussion started by: boncuk
4 Replies

2. Programming

Proc compilation error.

I'm trying to compile a proc program when use make -f proc.mk , it gives the following error . `/export/home/app/oracle/product/10.2.0/lib/libclntsh.so' is up to date. rateutil.o: No such file or directory Please advise ,, I need urgent help. Thanks, Omar Atia:) (2 Replies)
Discussion started by: atiato
2 Replies

3. 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

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. Programming

compilation error while using cygwin

Hello, I am trying to compile a C program from Cygwin and it gives ld: not found -user32 error .. I searched for library libuser32.so and was not able locate it.. When i create only object file using gcc -c option it gets created successfully .. When i use gcc -o option , executable is not... (4 Replies)
Discussion started by: shafi2all
4 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. Programming

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&)':... (3 Replies)
Discussion started by: mansoorulhaq
3 Replies

8. 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

9. 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

10. Programming

compilation error in gcc

Hi, Should be too simple... I wrote a sample c++ program like #include <iostream.h> int main() {$ int ab=455; cout << ab << endl; return 1; } I am getting error like $ gcc u1.cpp Undefined first referenced ... (9 Replies)
Discussion started by: ls1429
9 Replies

Featured Tech Videos