|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to call object file from C file
Hi guys,
I have a problem with calling object file from C file. Here I am writing simple code to explain my problem. // finding rectangle area #include <stdio.h> main() { int i,j,area; i=rand(); jrand(); *****(call area.o to this place so that we will get "area") printf( "%d", area); } I have object file called "area.o" which gives area (its function is rect_area=area(a,b) ) My doubt is how to call object file to C code from out side. I knew that we can use "make files and exec" to solve it in Unix. But i am using windows and using VC++ as C compiler. This is very important to do my thesis. So could you any one of you help me to solve this problem. Thanks |
|
#2
|
|||
|
|||
|
Maybe you could post this in the C programming forum?
|
|
#3
|
|||
|
|||
|
soory for that. and thanks for your suggestions.
|
|
#4
|
||||
|
||||
|
Thread closed.
|
| Viewing: Dev Shed Forums > System Administration > Networking Help > How to call object file from C file |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|