delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/06/17/04:20:50

From: "Jan Nepras, UWB Pilsen, CZ" <NEPRAS0 AT hermes DOT zcu DOT cz>
Organization: University of West Bohemia, Pilsen
To: Matthias Burian <A8411GAC AT helios DOT edvz DOT univie DOT ac DOT at>
Date: Fri, 17 Jun 1994 10:15:22 MET
Subject: Re: FAQ, manuals for greenhorns?
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu

> >and -lgpp. When I typed 'cpp app.cc -o app -lgrx -lgpp' in command
>                           ^^^
>                try calling gcc, as that's the frontend for cc !!!!
>                normally, cpp is only the preprocessor !

Oops! I should have checked twice my typing, actualy, I did called 
gcc.

> did you set the various environment variables for DJGPP right ?
> Remember, you have to use forward slashes to separate directories.

Yes, I used the Unix convention.

> Your Makefile seems to be correct, but there are two points you should
> check:
> -) If you're defining targets, don't separate the target name and the
>    double colon with a blank (for example    target: target.o
>                                                    ^
> -) Check if you indented the lines AFTER a target with a TAB character.
> target: target.o
>         gcc $(CFLAGS) -o target target.o -lxxx ...
> ^^^^^^^^ <--- this should be a TAB, otherwise some make utilities get
>         really confused ...
> -) If really strange things are going on, add '-v' to the command line
>    of gcc, then you'll get a detailed output what it does (preprocessor,
>    compiler, linker)
>    Maybe this tells you what's going wrong ...
> 
> Good Luck !!!
>                 ...Matthias

Ahh, that trick with TABs and blanks seems to be the my problem. Life 
is not easy...  Thanks!

                            Jan 
                                    
  /------------------------------------------------------------\
  | Jan Nepras (student)        | University of West Bohemia   |
  | nepras0 AT jonas DOT zcu DOT cz        | Pilsen                       |
  | nepras0 AT hermes DOT zcu DOT cz       | Czech Republic               |
  \------------------------------------------------------------/


 

- Raw text -


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