Solved

problems running simple c program

Posted on 2000-03-05
7
201 Views
Last Modified: 2010-04-02
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
Comment
Question by:fultu
7 Comments
 
LVL 33

Expert Comment

by:hongjun
ID: 2586285
Maybe you could post the code here so that we could solve it for you.

hongjun
0
 
LVL 9

Expert Comment

by:Pacman
ID: 2586873
according to the hotkey I assume your are using a kind of borland compiler ? What do u mean with "run" and "blank file" ???
0
 
LVL 3

Expert Comment

by:Iexpert
ID: 2588628
C0.asm is the startup routine that calls main I think.
So emm what do you mean by blank file?
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Expert Comment

by:vhawargi
ID: 2594904
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
 

Accepted Solution

by:
wawb earned 30 total points
ID: 2602786
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
 

Author Comment

by:fultu
ID: 2628451
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
 

Author Comment

by:fultu
ID: 2628455
Adjusted points from 20 to 30
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
C: GetDiskFreeSpaceEx() for default drive 14 104
C hashtable library 3 81
How to install SVN Command Line Client? 5 41
Computer slow / BSOD 10 38
Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops in the C programming language.

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now