www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++ - help

↑ ↓ ← nuts <nuts_member pathlink.com> writes:
thank you for the help you two  i really appreciate it 

opened the zip file 

im now stuck  my objective is to create a c++ program (say helloworld.app)  then
compile it to produce the exe file that can be run.

i think i have to do this thru link
obj.files
output files
map file
libraries and paths
definition file
resource file
these are the thing it asks for

any suggestions
Jan 31 2006
↑ ↓ → Bertel Brander <bertel post4.tele.dk> writes:
nuts wrote:
 thank you for the help you two  i really appreciate it 
 
 opened the zip file 
 
 im now stuck  my objective is to create a c++ program (say helloworld.app) 
then
 compile it to produce the exe file that can be run.
 
 i think i have to do this thru link
 obj.files
 output files
 map file
 libraries and paths
 definition file
 resource file
 these are the thing it asks for
 
 any suggestions

I wrote this little guide a while back in another thread: Notepad can be used to write and edit your code. To do that you: Open notepad, write your program, e.g.: #include <iostream> int main() { std::cout << "Hello World!" << std::endl; } And you save the program to a file, say hello.cpp. To be more accurate, this is the source code of your program. The you open a command prompt: Start Menu -> Run -> cmd (if NT/2000/XP else command) The rest will be done in this commmand box. Now you change the the active directory of your command prompt to the folder in which you stored the source code, this is done by the cd command, e.g.: cd \myprograms\hello Now you have to compile your program, that is, create an executeable from the source code, this is done by the compiler, you do it by running the command: dmc hello.cpp The compiler will most likely print the slightly odd message: link hello,,,user32+kernel32/noi; If the compiler succeeds, it will have created an program called hello.exe. You can then run your program by typing the command: hello And your program will write: Hello World. You have to download STLport from where you downloaded dmc to make it work. -- Absolutely not the best homepage on the net: http://home20.inet.tele.dk/midgaard But it's mine - Bertel
Jan 31 2006