Advertisement

Erm...general VC question

Started by March 14, 2001 09:01 AM
3 comments, last by tidilipom 23 years, 8 months ago
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.
What kinds of errors did you get?
Advertisement
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.
--Peace.
You have included the header in main.c aswell, right ?


newbie2001
Yes.
--Peace.

This topic is closed to new replies.

Advertisement