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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compiling C code in Visual C++ 1

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
How can I compile a C program with the Visual C++?
Thanx
 
Ensure that your files have a .c extension and this will call the c compiler and declare the functions as extern c to prevent name mangling.

Or rename the file as cpp but you'll have to cast an appropriate return value from malloc. If you use it or replace call to malloc with new.

HTH.




William
Software Engineer
ICQ No. 56047340
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top