LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 08-18-2008, 11:58 PM   #1
hai12345
LQ Newbie
 
Registered: Jun 2008
Posts: 9

Rep: Reputation: 0
command for create EXE for .cpp program in vista


hi to all,
when i was trying to create exe file using following cmd
g++ -c Crc16.cpp
g++ -o Crc16 Crc16.cpp

the following error msg is coming.
C:\Users\Admin\Desktop\C-Editor\EXE>g++ -c Crc16.cpp
Crc16.cpp:1:23: no include path in which to find iostream.h
Crc16.cpp:2:22: no include path in which to find windows.h
Crc16.cpp:3:21: no include path in which to find stdlib.h
Crc16.cpp:4:21: no include path in which to find string.h
Crc16.cpp:5:20: no include path in which to find stdio.h
Crc16.cpp:6:20: no include path in which to find excpt.h
Crc16.cpp:7: `NULL' was not declared in this scope
Crc16.cpp:8: `NULL' was not declared in this scope
Crc16.cpp:9: `NULL' was not declared in this scope
Crc16.cpp: In constructor `Crc16::Crc16()':
Crc16.cpp:23: `strcpy' undeclared (first use this function)
Crc16.cpp:23: (Each undeclared identifier is reported only once for each
function it appears in.)
Crc16.cpp: At global scope:
Crc16.cpp:31: `NULL' was not declared in this scope
Crc16.cpp:32: `NULL' was not declared in this scope
Crc16.cpp: In function `int configpath(char*)':
Crc16.cpp:40: `NULL' undeclared (first use this function)
Crc16.cpp:50: `strlen' undeclared (first use this function)
Crc16.cpp: In function `char* decitobin(char*)':
Crc16.cpp:100: `itoa' undeclared (first use this function)
Crc16.cpp:107: `strcat' undeclared (first use this function)
Crc16.cpp: In function `char getBCD(char*)':
Crc16.cpp:124: `strcmpi' undeclared (first use this function)


help me
 
Old 08-19-2008, 12:14 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
This has nothing to do with Linux, so I've reported it to be moved. In future, please make sure you post in the right forum.

Looks like you need to specify a location for the includes. This is done using g++'s -I option. Also, FWIW, if you're trying to build an executable file, you won't want to use the -c option. This compiles but does not link libraries, so you won't get a complete executable.
 
Old 08-19-2008, 03:21 AM   #3
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Moved: This thread is more suitable in the General forum and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in running cpp program on fedora 6 manish jain Programming 6 04-07-2008 08:17 AM
KDE g++ program doesn't run test.cpp richikiki Programming 6 03-17-2006 02:47 PM
How to create command to start a program without going to that folder? janestclaire Linux - Newbie 6 08-31-2005 07:42 PM
need a shell program cpp file GoboFraggle Programming 1 04-02-2003 10:28 PM
c/c++ how to create .exe vicente Programming 7 10-10-2001 09:30 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 07:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration