Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

compil

Status
Not open for further replies.

hammam02

IS-IT--Management
Mar 23, 2009
27
EG
i have two files XXX.c XXX.h this file source code
i need to compile this file in unix platform AIX5.2
 
Use the xlc compiler. What sort of problem are you having?
 
i do it but i have broblem

$ xlc repfmt.h
xlc: 1501-218 file repfmt.h contains an incorrect file suffix
ld: 0711-715 ERROR: File repfmt.h cannot be processed.
The file must be an object file, an import file, or an archive..
 
.h is the suffix for a header file. You should be compiling the source (.c) file. Header files are not normally compiled: only sources (.c) files are compiled.

xlc repfmt.c

should work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top