Operating System - HP-UX
1828665 Members
1418 Online
109984 Solutions
New Discussion

Re: How to make an executable with gcc

 
SOLVED
Go to solution
Brecht De Baets
Frequent Advisor

How to make an executable with gcc

Hello,

I have to make an executable on HP-UX 11.23 from a file pdftkk.cc.
If I execute gcc pdftkk.cc, will it directly make an executable, or do I have to use another statement to get an executable ?

Regards,
Brecht
2 REPLIES 2
Dennis Handly
Acclaimed Contributor
Solution

Re: How to make an executable with gcc

Since this is C++, I would suggest you use:
$ g++ pdftkk.cc

This should compile and link, unless you add "-c", for compile only.
Brecht De Baets
Frequent Advisor

Re: How to make an executable with gcc

Ok thanks !