i get this error when compiling:
Yet here's the top half of my test GUI driver from my os, where the error occurs:Gay Visual C++ Compiler wrote:Error 8 error LNK2019: unresolved external symbol "struct PROGBAR_ * list" (?list@@3PAUPROGBAR_@@A) referenced in function "void __cdecl GUIInit(int)" (?GUIInit@@YAXH@Z) C:\Users\(no need to know my name)\Documents\Accel OS\Install\Floppy\Installer\Kernel\GUI.lib(GUI.obj)
Code: Select all
#include <VGA.h>
struct PROGBAR_//My progress bar struct for drawing
{
bool used;
int x;
int y;
int width;
int height;
byte color;
byte fill;
};
typedef PROGBAR_ PROGBAR;//typedef for the struct
PROGBAR list[];//List of progress bars
int max_ctrls;//Global var for GUIDraw()
bool GUIInitialized = false;//Same as above
void GUIInit(int num_ctrls)
{
max_ctrls = num_ctrls;//For the GUIDraw() function
for(int i=0; i<max_ctrls; i+=1) // Set all entries to unused
list[i].used = false;
GUIInitialized = true;//Tell my GUIDraw() function that the GUI is initialized
}
I don't even have any code close to
Code: Select all
struct PROGBAR_ * list
If necessary I will post the rest of my GUI driver.