specifier-qualifier-list ?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
AndrewBuckley
Member
Member
Posts: 95
Joined: Thu Jan 29, 2009 9:13 am

specifier-qualifier-list ?

Post by AndrewBuckley »

iv been searching but the long strings involved seem to narrow even googles searches down to two or three links and they dont really help.

/* The Multiboot information. */
typedef struct multiboot_info
{
unsigned long flags;
unsigned long mem_lower;
unsigned long mem_upper;
unsigned long boot_device;
unsigned long cmdline;
unsigned long mods_count;
unsigned long mods_addr;
union
{
aout_symbol_table_t aout_sym;
elf_section_header_table_t elf_sec;
} u;
unsigned long mmap_length;
unsigned long mmap_addr;
} multiboot_info_t;

from http://www.osdever.net/tutorials/grub.php and i get the error

error: expected specifier-qualifier-list before 'aout_symbol_table_t'.

searching either the specifier list or aout symbol table gets me nowhere, commenting out both union entries allows it to compile but grub wont boot it then. im rambling now, any help would be appreciated.
fronty
Member
Member
Posts: 188
Joined: Mon Jan 14, 2008 5:53 am
Location: Helsinki

Re: specifier-qualifier-list ?

Post by fronty »

1. Code tags.
2. http://forum.osdev.org/viewtopic.php?f=1&t=16944
3. You need to write that structure. a.out(5) should give you enough info. I even found implementation with simple googling.
Post Reply