Welcome, Guest. Please
login
or
register
.
Forums
Forums
Board
Topic
Home
Today's Posts
Gallery
Login
Register
Amiga.org
»
Operating System Specific Discussions
»
Amiga OS
»
Amiga OS -- Development
»
VBCC: size of incomplete type not available / linker
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: VBCC: size of incomplete type not available / linker (Read 2353 times)
Description:
0 Members and 1 Guest are viewing this topic.
Thomas
Hero Member
Join Date: Jun 2002
Posts: 3399
Country:
Thanked: 23 times
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
Logged
Email:
thomas-rapp@web.de
Home:
thomas-rapp.hier-im-netz.de
Thomas
Hero Member
Join Date: Jun 2002
Posts: 3399
Country:
Thanked: 23 times
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
Logged
Email:
thomas-rapp@web.de
Home:
thomas-rapp.hier-im-netz.de
Thomas
Hero Member
Join Date: Jun 2002
Posts: 3399
Country:
Thanked: 23 times
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
Logged
Email:
thomas-rapp@web.de
Home:
thomas-rapp.hier-im-netz.de
Print
Pages: [
1
]
Go Up
« previous
next »
Amiga.org
»
Operating System Specific Discussions
»
Amiga OS
»
Amiga OS -- Development
»
VBCC: size of incomplete type not available / linker
There was an error while thanking
Thanking...