|
stupid externs
Okay, I have this globals structure that houses all of the important game globals. It''s in a file globals.h and it''s section in the header follows
and I get a linker message unresolved external struct __unnamed G
Thanks in advance for any help
One of your .c modules must have GLOBALS_OWNERSHIP #defined. If it''s not defined anywhere, than nobody owns your global--it doesn''t exist, therefore the linker says it''s unresolved.
It doesn''t even work if I just directly use
extern struct {
blah
} G;
Also, I used ifndef so I don''t want to define GLOBALS_OWNERSHIP to make the struct extern right?
extern struct {
blah
} G;
Also, I used ifndef so I don''t want to define GLOBALS_OWNERSHIP to make the struct extern right?
Okay I have that working now but now it is not createwindowex is not working. For some reason the window is not being made. Also, in another project I''m working on, I get a really weird message:
C:\mssdk\lib\ddraw.lib : fatal error LNK1106: invalid file or disk full: cannot seek to 0x389bc793
any idea what that''s all about
C:\mssdk\lib\ddraw.lib : fatal error LNK1106: invalid file or disk full: cannot seek to 0x389bc793
any idea what that''s all about
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement