www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/07/29/21:09:42

Date: Sat, 29 Jul 1995 20:05:37 -0400
To: djgpp AT sun DOT soe DOT clarkson DOT edu
From: egley AT albany DOT net (Skip Egley)
Subject: argc and argv

        
Well, I found out it wasn't argc or argv in the main argument list.
Thanks to Matt H. for the reply.  It doesn't like my main() period.  No
matter how I have it I get the error:

fake(.text+0xe2): undefined reference to 'main'

I compile with the line:

gcc -g problem1.cc -o problem1 -lgpp

I have another program that compiles fine with that line and it has a main().
I have more .h files included than I care to mention since I thought maybe
that was the problem, but in the one that works it only has iostream.h.

What's going on??
Thanks,
Skip Egley

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019