• C

problems running simple c program

although the program is a long one
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
Who is Participating?
wawbConnect With a Mentor Commented:
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.
Maybe you could post the code here so that we could solve it for you.

according to the hotkey I assume your are using a kind of borland compiler ? What do u mean with "run" and "blank file" ???
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

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?

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
fultuAuthor Commented:
Adjusted points from 20 to 30
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.