Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

problems running simple c program

Posted on 2000-03-05
7
203 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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand recursion in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use nested-loops in the C programming language.

861 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