• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 208
  • Last Modified:

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
0
fultu
Asked:
fultu
1 Solution
 
hongjunCommented:
Maybe you could post the code here so that we could solve it for you.

hongjun
0
 
PacmanCommented:
according to the hotkey I assume your are using a kind of borland compiler ? What do u mean with "run" and "blank file" ???
0
 
IexpertCommented:
C0.asm is the startup routine that calls main I think.
So emm what do you mean by blank file?
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
vhawargiCommented:
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?

0
 
wawbCommented:
I stopped using Borland C++ when 5.0x was release. The error
you're experiencing is one of the reasons.
Now, this was a few years back so I'm sure I remember the
exact reason this happens, but I have a fuzzy memory of
having to either reboot the machine, or recreate the
project everytime it did happen.

And it happened a lot.

Not the worst thing that happened with BC5, one time borland
actually overwrote my source files with garbage.

Try rebooting, try recreating the project. If it solves something,
perhaps it will lead to the reason it happens in the first place.
0
 
fultuAuthor Commented:
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
 
0
 
fultuAuthor Commented:
Adjusted points from 20 to 30
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now