473,473 Members | 1,714 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to set the evironment variables?

Hi all,

i don't know whether it is appropriate to ask this question in this group.
just as below:

I have installed dev-cpp 4.9.8£¬and it is just a wrap of gcc3.2. i just want
to use g++ compile in command line, and i have set the environment
variables, just like this:
D:\>set lib
lib=c:\Dev-Cpp\lib

D:\>set include

include=c:\Dev-Cpp\include;c:\Dev-Cpp\include\c++;c:\Dev-Cpp\include\c++\min
gw32
;c:\Dev-Cpp\include\c++\backward

when i compile the .cpp in command line, it just tell me can't find the std
lib, just like this:
D:\>g++ 1.cpp
1.cpp:1:20: iostream: No such file or directory
1.cpp:2:18: locale: No such file or directory

my os is win2k.
Thanks

Jul 22 '05 #1
4 1159
"constructor" <co*********@126.com> wrote...
i don't know whether it is appropriate to ask this question in this group.
It's appropriate to ask. You will just get a different answer than one
you expected, I'm afraid.
just as below:

I have installed dev-cpp 4.9.8£¬and it is just a wrap of gcc3.2. i just want to use g++ compile in command line, and i have set the environment
variables, just like this:
D:\>set lib
lib=c:\Dev-Cpp\lib [...]
my os is win2k.


It would be better to ask in a newsgroup that deals with administering
or using that operating system. I don't know its name, sorry. Another
good newsgroup to ask would probably be one that deals with your
compiler (gnu.g++.help, maybe).

V
Jul 22 '05 #2
oh, thanks anyway

"Victor Bazarov" <v.********@comAcast.net> wrote in message
news:Mvy0c.444485$na.1074603@attbi_s04...
"constructor" <co*********@126.com> wrote...
i don't know whether it is appropriate to ask this question in this
group.
It's appropriate to ask. You will just get a different answer than one
you expected, I'm afraid.
just as below:

I have installed dev-cpp 4.9.8£¬and it is just a wrap of gcc3.2. i just

want
to use g++ compile in command line, and i have set the environment
variables, just like this:
D:\>set lib
lib=c:\Dev-Cpp\lib

[...]

my os is win2k.


It would be better to ask in a newsgroup that deals with administering
or using that operating system. I don't know its name, sorry. Another
good newsgroup to ask would probably be one that deals with your
compiler (gnu.g++.help, maybe).

V

Jul 22 '05 #3
hi all,

I have asked this question in "gnu.g++.help", but there seems no people
to visit the group! for two days, there have no new articles in that group,
who can help me ?

"Victor Bazarov" <v.********@comAcast.net> wrote in message
news:Mvy0c.444485$na.1074603@attbi_s04...
"constructor" <co*********@126.com> wrote...
i don't know whether it is appropriate to ask this question in this
group.
It's appropriate to ask. You will just get a different answer than one
you expected, I'm afraid.
just as below:

I have installed dev-cpp 4.9.8£¬and it is just a wrap of gcc3.2. i just

want
to use g++ compile in command line, and i have set the environment
variables, just like this:
D:\>set lib
lib=c:\Dev-Cpp\lib

[...]

my os is win2k.


It would be better to ask in a newsgroup that deals with administering
or using that operating system. I don't know its name, sorry. Another
good newsgroup to ask would probably be one that deals with your
compiler (gnu.g++.help, maybe).

V

Jul 22 '05 #4
constructor wrote:

I have installed dev-cpp 4.9.8£¬and it is just a wrap of gcc3.2. i just
want
to use g++ compile in command line, and i have set the environment
variables, just like this:
D:\>set lib
lib=c:\Dev-Cpp\lib


[...]
my os is win2k.


To specify include/library paths, invoke g++ with "-I
C:\Dev-Cpp\include", "-I C:\Dev-cpp\include\c++", etc., and "-L
C:\Dev-Cpp\lib". I imagine that part of the point of dev-cpp is that the
IDE takes care of these things. If you're intent on using the command
line it would be simpler to use MinGW directly, or through MSYS (a small
unix-like environment for Windows that provides bash etc.). It really
shouldn't be necessary for you to know about details such as the
location of the standard headers, let alone to have to tell g++ about
them every time, and the system is capable of handling this for you if
it has been set up to do so.

I've tried to find the installation instructions in the dev-cpp tree and
had no luck, so I'm not surprised you're having trouble. If you still
can't get it working I'm willing to download the whole thing and see if
I can figure something out for you.

Regards,
Buster.
Jul 22 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Hal Vaughan | last post by:
First, I am aware of both SwingUtilities.invokeLater(), and of using Thread to create a new thread.  These are part of the problem. I want to have something running in the background, while the...
4
by: Torsten Bronger | last post by:
Hallöchen! I have a file that looks a little bit like a C header file with a long list of variables (actually constants) definitions, e.g. VI_ATTR_TIMO = 0x54378 .... Actually I need this...
1
by: mark4asp | last post by:
What are the best methods for using global constants and variables? I've noticed that many people put all global constants in a file and include that file on every page. This is the best way of...
5
by: Ross A. Finlayson | last post by:
Hi, I'm scratching together an Access database. The development box is Office 95, the deployment box Office 2003. So anyways I am griping about forms and global variables. Say for example...
7
by: Michael | last post by:
Hi newsgroup, as the subject indicates I am looking for an advice using global variables. I am not if this problem is more about style then C. If its wrong in thi group, sorry. So I have a...
9
by: CDMAPoster | last post by:
About a year ago there was a thread about the use of global variables in A97: http://groups.google.com/group/comp.databases.ms-access/browse_frm/thread/fedc837a5aeb6157 Best Practices by Kang...
7
by: misha | last post by:
Hello. I was wandering if someone could explain to me (or point to some manual) the process of mapping the addresses of host variables by DB2. Especially I would like to know when DB2 decides to...
5
by: Sandman | last post by:
I dont think I understand them. I've read the section on scope in the manual inside out. I'm running PHP 5.2.0 Here is the code I'm working on: //include_me.php <?php $MYVAR = array(); global...
1
weaknessforcats
by: weaknessforcats | last post by:
C++: The Case Against Global Variables Summary This article explores the negative ramifications of using global variables. The use of global variables is such a problem that C++ architects have...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.