Erm...general VC question
How can I have all my functions in one .c file and the rest (main) in another?
Ive tried to put some functions in another file then imported it to my VC project, and compiled...but i get some very weird errors.
Help?
--Peace.
Umm i managed to reduce the errors now, but still one left that is buggin me:
error LNK2001: unresolved external symbol "void __cdecl make_colorspin(float,float,float,float)" (?make_colorspin@@YAXMMMM@Z)
urm yeah something like that.
Ive got the function prototype declared in a header (void make_colorspin(GLfloat bla ..))
and then the function is in a file called fx.c and both the header and c file is added to my project, from the main file (main.c) i call the function like usual...but...well it doesn''t work.
error LNK2001: unresolved external symbol "void __cdecl make_colorspin(float,float,float,float)" (?make_colorspin@@YAXMMMM@Z)
urm yeah something like that.
Ive got the function prototype declared in a header (void make_colorspin(GLfloat bla ..))
and then the function is in a file called fx.c and both the header and c file is added to my project, from the main file (main.c) i call the function like usual...but...well it doesn''t work.
--Peace.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement