Apr 8, 2005 #1 S shedeed Member level 4 Joined Sep 26, 2004 Messages 70 Helped 2 Reputation 4 Reaction score 1 Trophy points 1,288 Location Egypt Activity points 631 C programs Linking i want to link a program written in C language and another one written in C++ language. How could i do so using Borland Compilers
C programs Linking i want to link a program written in C language and another one written in C++ language. How could i do so using Borland Compilers
Apr 8, 2005 #2 R raj_rohit10 Advanced Member level 4 Joined Jul 14, 2004 Messages 100 Helped 2 Reputation 4 Reaction score 1 Trophy points 1,298 Activity points 891 Re: C programs Linking As per my understanding C++ is the superset of c so directly you can compile c files also in cpp compiler by changeing just the name of file from .c to .cpp. this way u can link it.If any issue let me know.
Re: C programs Linking As per my understanding C++ is the superset of c so directly you can compile c files also in cpp compiler by changeing just the name of file from .c to .cpp. this way u can link it.If any issue let me know.
Apr 23, 2005 #3 A adelmon Junior Member level 1 Joined Apr 22, 2005 Messages 17 Helped 8 Reputation 16 Reaction score 4 Trophy points 1,283 Activity points 1,554 Re: C programs Linking The superset issue is right!. Actually you do NOT even have to rename the file!.. I have compiled lots of c files with brland compilers. It can be done. Just be sure to select a console application while you make a new project.
Re: C programs Linking The superset issue is right!. Actually you do NOT even have to rename the file!.. I have compiled lots of c files with brland compilers. It can be done. Just be sure to select a console application while you make a new project.
Apr 25, 2005 #4 H hanglb Junior Member level 1 Joined Mar 5, 2005 Messages 15 Helped 1 Reputation 2 Reaction score 0 Trophy points 1,281 Activity points 1,435 C programs Linking you can add the statement "#inlude the C filename" in the beginning of the C++ program
C programs Linking you can add the statement "#inlude the C filename" in the beginning of the C++ program