Apr 10, 2002 #1 Guest_imported New member Joined Jan 1, 1970 Messages 0 How can I compile a C program with the Visual C++? Thanx
Apr 10, 2002 1 #2 williamu Programmer Joined Apr 8, 2002 Messages 494 Location GB 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 Upvote 0 Downvote
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