Mail Archives: djgpp/1995/10/15/09:49:18
Xref: | news-dnh.mv.net comp.os.msdos.djgpp:2666
|
Path: | news-dnh.mv.net!mv!news.sprintlink.net!newsfeed.internetmci.com!news.mathworks.com!news.kei.com!eff!news.umbc.edu!haven.umd.edu!purdue!yuma!holly.ACNS.ColoState.EDU!not-for-mail
|
From: | corbyh AT holly DOT ACNS DOT ColoState DOT EDU (Corby S. Hudnall)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Frustration!!!
|
Date: | 15 Oct 1995 05:02:31 -0600
|
Organization: | Colorado State University, Fort Collins, CO 80523
|
Lines: | 36
|
Nntp-Posting-Host: | holly.acns.colostate.edu
|
To: | djgpp AT sun DOT soe DOT clarkson DOT edu
|
Dj-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Alright, I've been working with djgpp for about the past 7 hours and I
am getting very frustrated with what is probably so very simple, that
I'll kick myself. First off, I am new to djgpp but not to gcc. I've
been working with my machine as a Linux box for some time now but feel
the need to expand my horizons a bit into Dos and Windoze programming.
I've poured throught the FAQ and info docs for the answers too the
following questions but obviously didn't find them so here we go:
1) I have to tell gcc where the libraries are every time I try to
compile a piece of code, ie I must include -I\djgpp\include and
-I\djgpp\cplusinc when I want to compile C++ code. How to I set the path
to the C++ include files. I haven't altered the djfpp.env file and I
though that would take care of itself with "SET DJGPP=..\../djgpp.env"
from my autoexec.bat. I get this setting from the testit.bat file in
samples/hello.
2) Along the same lines, what do I have to do differently to compile
c++ code aside from naming file *.cpp or *.cc or whatever. I can't seem
to get C code to compile all of the time.
3) While trying to compile a Hello World C++ program like this:
gcc test.cpp -I\djgpp\cplusinc -I\djgpp\include
I get this: c:/djgpp/bin/ld.exe: cannot open crt0.o: file not found
Why isn't this file found/created while compiling? How can I get this
simple 5 line code to compile?
Your help and suggestions are greatly appreciated.
--------------- BEGIN SIGNATURE ---------------
#include <iostream.h>
main()
{
cout<<"\aName:\tCorby S. Hudnall\n";
cout<<"School:\tColorado State University\n";
cout<<"EMail\tcorbyh AT holly DOT colostate DOT edu\n";
cout<<"URL\thttp://holly.colostate.edu/~corbyh/\n";
}
---------------- END SIGNATURE ----------------
- Raw text -