Welcome, Guest. Please login or register.

Author Topic: VBCC: size of incomplete type not available / linker  (Read 2352 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Thomas

Re: VBCC: size of incomplete type not available / linker
« on: April 14, 2005, 09:09:47 PM »

You should increase the stack size to avoid crashes. If you don't want to use amiga.lib you have to include proto/exec.h instead of clib/exec_protos.h.

I don't get any incomplete type message from you code.

An incomplete type is a struct which has not yet been defined.

e.g.

#include stdlib.h>

void main (void)
{
struct xy *ptr;
ptr = malloc(sizof(struct xy));
}

Here "struct xy" is incomplete when used with sizeof() because the compiler does not know its size.

In your code you probably used the wrong case. E.g. struct LONGSegment2compare instead of struct LONGSegment2Compare.

Bye,
Thomas

Offline Thomas

Re: VBCC: size of incomplete type not available / linker
« Reply #1 on: April 15, 2005, 03:49:55 PM »
Quote

It's more than 50K of source now.


Erm, and you compile it all in one go ? Must take ages.

You should create several small object modules which are linked together in the end.

The advantage is that you don't need so much memory and that only the changed modules have to be recompiled.

"Make" is your friend, really.

Bye,
Thomas

Offline Thomas

Re: VBCC: size of incomplete type not available / linker
« Reply #2 on: April 15, 2005, 05:56:42 PM »

Make is one of the GNU binutils, but it can be used for any shell program, not only compilers.

Most Make ports for AmigaOS run standalone, without any reference to GCC or ixemul.

Bye,
Thomas