Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

running a c and c++ program together 2

Status
Not open for further replies.

newbieKing

Programmer
Jan 29, 2003
19
CA
Hi, I've got a c program that cannot be saved as a c++ file. When I try to save it as C++, there are several compile errors.
Anyways, I need to get the results from this C program and transfer what it returns to another C++ program.
How are you supposed to link and run everything??
I'd appreciate any help.
Thanks
 
Oh, when i try to make to run the main C++ file with the function prototype from the C file inluded as a header file, the following error pops up:


c:\visualc++\udpclient1\macaddress.c(56) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Error executing cl.exe.
Creating browse info file...
BSCMAKE: error BK1506 : cannot open file '.\Debug\macAddress.sbr': No such file or directory
Error executing bscmake.exe.
 
I think you should add #include"stdafx.h" at the first line of each .cpp file.

Ion Filipski
1c.bmp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top