Mail Archives: djgpp/2002/10/04/15:00:28
"Sams" <ssure AT alldomainregister DOT com> wrote:
> Hi,
>
> I am new to DJGPP.
> I installed the DJGPP as descriped on the readme.1st file for Windows 2000
> system.
>
> When I ran the go32-v2 I got this message:
> DPMI memory available: 75346 Kb
> DPMI swap space available: 0 kb
>
>
> When I compile a c program (gcc -c -Wall dsapi3.c ) it gives a warning but
> create an object file dsapi3.o
What is *exactly* the warning message?
> When I link it (gcc -o dsapi3.dll dsapi3.o)
^^^^^^^
Are you trying build a DLL? This sound weird :-)
> I got these messages
>
> C:/djgpp/lib/crt0.o(.data+0xc2):crt0.s:undefined reference to 'main'
> C:/djgpp/lib/libc.a(crt1.o)(.text+0x404):crt1.c: undefined reference to
> 'main'
> collect2: ld returned 1 exit status
>
Obviously, you don't define a 'main' function in your source. After
consulting
my crystal ball, I guess that are you trying to build a library, and for
this reason
you don't need a main function. Well, if I'm correct, you need type at
command
line
gcc -o libdsapi.a dsapi3.o
The prefix 'lib' and the extension 'a' are both required.
Of course, whitout more info, we can't give you a more helpful advice.
HTH
J. L.
- Raw text -