help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

g++ windows XP install propblems - path


From: dtshedd
Subject: g++ windows XP install propblems - path
Date: 16 Feb 2007 05:52:11 -0800
User-agent: G2/1.0

I have recently downloaded the following version of g++

gcc-g++-3.4.2-20040916-1.tar.gz

I extracted all the files, and tried to compile the following simple
script;

  #include "iostream.h"
  int main()
  {
    cout << "Hello...\n";
  }

I used the following command

g++ hello.C -o hello


this action caused numerous error messages.  I suspect it had to do
with the include statement, ie the compiler could no locate the
include file.  I tried adding the windows folder to the envirnoment
variable path, but this did not solve the problem

my past experiences with gcc (very dated) was that you added a number
of folders to the path statement via the autoexec.bat file.  I
searched the newsgroups for a list of the folders to add but could not
locate this information.  I also noted that while Windows NT used an
autoexec.nt file as a replacement for autoexec.bat, XP does not appear
to have a similar file.  SO I am assuming I would have to add this
string to the environment variable under My Compuer-Properties-
Advanced-Environment Variables

appreciate any advice and tips.

TIA


dan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]