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

Home Posts Topics Members FAQ

Compiling a simple C program with Microsoft Visual Studio .NET 2003

Hi,

I am going through a C tutorial and would like to compile a simple C program
using Microsoft Visual Studio .NET 2003. I can open my *.c file but I can't
figure out a way to compile it.

If I try in the command window something like:

"cl -o hello hello.c"

I have the following message:

"Dummy version of CL to satisfy B&T's bogus requirement that it be on the
path"

Can anybody help?

Many thanks in advance,

Arnaud

Nov 25 '05 #1
9 1831
Arnaud Miege wrote:
I am going through a C tutorial and would like to compile a simple C program
using Microsoft Visual Studio .NET 2003. I can open my *.c file but I can't
figure out a way to compile it.


How did you start your project? Did you use the 'Start Page' or go
through File->New->Project root?

Using either of these methods will setup your development environment
correctly then it's only a matter of Build->Build Solution or ctrl +
shift + b

Nov 25 '05 #2
I don't have a project. I don't even know what a project is. It's just a
single C file. I worked out how to do it with the command line. The command
I was using was correct but I needed to run vcvars32.bat first (MVS had just
been installed) and now it works OK. But I still haven't figured out a way
to do it from the MVS window without having to type the compile command in
the command window.

Thanks,

"Carl R. Davies" <nw*****@googlemail.com> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
Arnaud Miege wrote:
I am going through a C tutorial and would like to compile a simple C
program
using Microsoft Visual Studio .NET 2003. I can open my *.c file but I
can't
figure out a way to compile it.


How did you start your project? Did you use the 'Start Page' or go
through File->New->Project root?

Using either of these methods will setup your development environment
correctly then it's only a matter of Build->Build Solution or ctrl +
shift + b

Nov 25 '05 #3
In article <dm**********@sabina.mathworks.co.uk>,
Arnaud Miege <Ar**********@NOSPAM.mathworks.co.uk> wrote:
"Dummy version of CL to satisfy B&T's bogus requirement that it be on the
path"


Do you have any idea who B&T are? Bill and Ted perhaps?

-- Richard
Nov 25 '05 #4
No idea... Could well be !!

"Richard Tobin" <ri*****@cogsci.ed.ac.uk> wrote in message
news:dm***********@pc-news.cogsci.ed.ac.uk...
In article <dm**********@sabina.mathworks.co.uk>,
Arnaud Miege <Ar**********@NOSPAM.mathworks.co.uk> wrote:
"Dummy version of CL to satisfy B&T's bogus requirement that it be on the
path"


Do you have any idea who B&T are? Bill and Ted perhaps?

-- Richard

Nov 25 '05 #5
Arnaud Miege wrote:

Replies belong below the text you are replying to, not above as you
placed it. See the majority of the posts in this group for examples.
I don't have a project. I don't even know what a project is. It's just a
single C file. I worked out how to do it with the command line. The command
I was using was correct but I needed to run vcvars32.bat first (MVS had just
been installed) and now it works OK. But I still haven't figured out a way
to do it from the MVS window without having to type the compile command in
the command window.


<snip>

This group is for standard C, not the specifics of particular
development systems. If the manuals are not good enough then try a group
dedicated to your implementation, probably somewhere in the microsoft.*
hierarchy, where there will be lots of people who know about Visual Studio.
--
Flash Gordon
Living in interesting times.
Although my email address says spam, it is real and I read it.
Nov 25 '05 #6
On Fri, 25 Nov 2005 10:19:05 -0000, in comp.lang.c , "Arnaud Miege"
<Ar**********@NOSPAM.mathworks.co.uk> wrote:
If I try in the command window something like:
"cl -o hello hello.c"
I have the following message:
"Dummy version of CL to satisfy B&T's bogus requirement that it be on the path"


Sounds like your installation is broken. Talk to your sysadmin and get
him to reinstall.

Further questions are offtopic here, since its not a C question, its a
problem with your installation.

By the way, MS's c compilers don't work like unix ones, that command
line is wrong. Read the compiler docs about how to create projects,
build s/w etc.
--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.ungerhu.com/jxh/clc.welcome.txt>

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Nov 26 '05 #7

"Arnaud Miege" <Ar**********@NOSPAM.mathworks.co.uk> wrote >I don't have a
project. I don't even know what a project is. It's just a
single C file. I worked out how to do it with the command line. The
command I was using was correct but I needed to run vcvars32.bat first
(MVS had just been installed) and now it works OK. But I still haven't
figured out a way to do it from the MVS window without having to type the
compile command in the command window.

You're doing the right thing.
Write a "Hello world" program, and then play with the compiler, read
documentation, demand a service engineer from Microsoft call, and generally
fiddle about until you mage to get it to compile and run.
Then try to work out what you did and you can run arbitrary C code (with any
luck).
Nov 26 '05 #8
20$ says cl is actually another exe or wrapper hiding out somewhere
else in his path.

There's no way a Microsoft product would issue that kind of error
message.

Nov 26 '05 #9
Das
Arnaud Miege wrote:
Hi,

I am going through a C tutorial and would like to compile a simple C program
using Microsoft Visual Studio .NET 2003. I can open my *.c file but I can't
figure out a way to compile it.

generally the Advanced IDEs Need a Project To be created, And compiled.
If I try in the command window something like:

"cl -o hello hello.c"

I have the following message:

"Dummy version of CL to satisfy B&T's bogus requirement that it be on the
path"

Can anybody help?

I have No Idea Regarding the Message and .Net compilers.

To create a project You Go to File->New->Project. It will create a
project space for You Then You Browse the property of the project. Add
your File To it and save the project( Remember to Check If the files
created by MVS has a main(). Then You have to delete that file. Or at
least modify it.)

Then Use compile/Build from Appropriate Menu.
Many thanks in advance,

Arnaud


Nov 26 '05 #10

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

Similar topics

6
by: Martin Bless | last post by:
The good news: Along with Python-2.4 comes really good news to Windows users. Yes, you now CAN build extension modules yourself using the SAME C++ compiler and linker Python is built with...
0
by: Tom Lee | last post by:
Hi, I'm new to .NET 2003 compiler. When I tried to compile my program using DEBUG mode, I got the following errors in the C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7 \include\xdebug...
0
by: Mobile Boy 36 | last post by:
I'm trying to make a very simple Textbox with a FocusColor property...When the focus changes to the control, the backcolor must change automaticly to the color set by the focusColor property....
1
by: Riaan | last post by:
I am compiling my app (including CODEBASE database headers) but as soon as i compile it gives me the following errors : c:\Program Files\Microsoft Visual Studio\VC98\Include\UTILITY(81) : warning...
3
by: RS | last post by:
Hi all, My code compiles well with gcc on linux and OS X, but now I have to run it at work, and my only choice is Visual Studio .Net 2003 environment on windows, which I had never used before....
1
by: ligong.yang | last post by:
Hi all, I got tortured by a very weird problem when I was using k. wilder's random generator class in my program. PS: wilder's generator class can be found at...
6
by: alf | last post by:
Hi, I want to add some library but it can not be comipled? Here is an output: D:\>cl Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42 for 80x86 Copyright (C) Microsoft...
9
by: Andreas Schmitt | last post by:
I am workin on a 2 part project right now. The first part is a DLL, the second part a normal exe using that DLL. When I use the VS2005 standard setting for compiling with the Multithreaded-DLL...
1
by: jon2211 | last post by:
I tried to compile some code with #include <shellapi.h. I am linking shell32.lib. I am not trying to use ShellExecute() but right now just getting the code to compile with the header file an...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
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 ...

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.