c++

c++

Post by kv7b » Wed, 02 Jun 1999 04:00:00



I have used emacs to write a basic "hello" program in C++.
I compiled using "g++ -o file.exe file.cpp" The syntax compiled but I can
not run it. Any clue on what I am doing wrong?
 
 
 

c++

Post by F.R.M.Barn » Wed, 02 Jun 1999 04:00:00


: I have used emacs to write a basic "hello" program in C++.
: I compiled using "g++ -o file.exe file.cpp" The syntax compiled but I can
: not run it. Any clue on what I am doing wrong?

What did it say when you tried to run it ? - also, I wouldn't recommend
naming executables to .exe on UNIX.  This is a DOS thing, and doesn't
belong here...

--
Fred.

 
 
 

c++

Post by Jason Sain » Wed, 02 Jun 1999 04:00:00



> I have used emacs to write a basic "hello" program in C++.
> I compiled using "g++ -o file.exe file.cpp" The syntax compiled but I can
> not run it. Any clue on what I am doing wrong?

Do you get any response at all when you attempt to execute file.exe?
Anything like "Permission denied" or "file not found"?

--
-------------------------------------------------------------
Jason Saint

 
 
 

c++

Post by John Burto » Wed, 02 Jun 1999 04:00:00


Is "." in your path? If not try using

./file.exe

to run your program.


t>...

Quote:>I have used emacs to write a basic "hello" program in C++.
>I compiled using "g++ -o file.exe file.cpp" The syntax compiled but I can
>not run it. Any clue on what I am doing wrong?

 
 
 

c++

Post by Oeyvind Roetvol » Thu, 03 Jun 1999 04:00:00


You forgot to put a ' << endl ' after your ' cout << "Hello world" '
in line 17.

--
olr, psychic programmer

 
 
 

1. For the AIX C++ gurus: creating a C interface to a C++ shard lib

I have created -- using xlC -- a shared library containing shared C++
objects.
One of these objects presents an extern "C" interface that wraps the C++
classes.
Programs compiled with xlc will link with the shared library with both xlc
and xlC
linking, but only the xlC linker works. We want to ship these libraries to
customers
who don't necessarily have the xlC compiler/linker.

Can anyone tell me how to produce a C wrapper for a C++ class, such that the
C
wrapper is an the same shared library as the C++ class?

Thanks in advance for any help.

--
Regards,

Edwin Fine

2. DHCP

3. these 3 questions from my C++ E-mail group, and my reply to C++ group

4. POP3 server for linux

5. c++ IDE like Microsoft's Visual C++, is there one

6. WARNING: K_trap

7. Are sun studio C/C++ compilers and Forte C/C++ compilers same ??

8. SPARC

9. how to include C++ header files when using Forte 6 C++ compiler?

10. Integrating SparcWorks C++ and Apex C++

11. Is c++ exception supported in GNU C++

12. C++ Compilation problems on Solaris 5.8 (Forte C++ 6 Update 2) -- Iterator

13. Could I compile "c" source with a C++ compiler (Forte C++ Update 2)?