Linker problem

When I compilied a program, there are no errors. When I tried to make (link) the program, the following error occured:

linker error:
undefined symbol _main in module C0.ASM

Could you tell me how to fix it?

I'm using Turbo C++ 3.0 under Windows ME.

Comments

  • : When I compilied a program, there are no errors. When I tried to make (link) the program, the following error occured:
    :
    : linker error:
    : undefined symbol _main in module C0.ASM
    :
    : Could you tell me how to fix it?
    :
    : I'm using Turbo C++ 3.0 under Windows ME.
    :
    Make shure you have a main function.
    like
    [code]
    int main(void)
    {
    printf("Hello, world!
    ");
    return 0;
    }
    [/code]
    This is the entrypoint to your program.(tc makes dos programs (AFAIK), so WinMain is no good)
  • how to check if i have a main function or not ???
    and how to specify it ???

  • NeoNeo India

    Just see your code and find if you have something written as main() anywhere..

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories