Link to home
Start Free TrialLog in
Avatar of fultu
fultu

asked on

problems running simple c program

although the program is a long one
yet
the error it generates is that of the error when you run a blank file with "ctrl F9"
                  Linker error :unable to open file in C0.asm
Avatar of hongjun
hongjun
Flag of Singapore image

Maybe you could post the code here so that we could solve it for you.

hongjun
according to the hotkey I assume your are using a kind of borland compiler ? What do u mean with "run" and "blank file" ???
Avatar of Iexpert
Iexpert

C0.asm is the startup routine that calls main I think.
So emm what do you mean by blank file?
C0.asm is the one which calls main(). (at least in C++ compiler...)

all these object files are linked by the compiler. at this time the linker is trying to locate main(). since there is no code, (assumed, as you told it is blank file) the linker is cribbing..

probably your code has a main() with a different signature... could you elaborate on the specific problem?

ASKER CERTIFIED SOLUTION
Avatar of wawb
wawb

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of fultu

ASKER

by blank file I mean
you write absolutely nothing in the new file and try to compile it with ctrl F9

the error is same as is generatd when I try to run the programms that I GOt from the CD .as mentioned earlier
 
Avatar of fultu

ASKER

Adjusted points from 20 to 30