Asked By Rayne
20-Nov-09 08:00 AM

Hi all,
I am using Visual Studio .NET 2003, and I am trying to port code I have
written and compiled/run successfully in Linux GCC to Windows.
I am a newbie when using VS. I have created a new project, and added all
the .c and .h files I have into the project by Project -> Add Existing
Items, then chose all the .c and .h files.
I am not familiar with how exactly compilers and linkers etc work, but
is there a difference between how VS and gcc compile/link #include
files? My habit of programming in Linux has been to have one main.c
file, and #include all other .h or .c files that I need. Then I would
only compile the main.c file. But in VS, it seems as if the #include
files are not "seen" by the program, because I am getting errors that
tell me certain structures or variables were not declared, even though
they are in my user-defined header files.
I am also getting errors like DIR is an undeclared identifier. I have
included , so why cannot it recognize DIR?
Thank you.
Regards,
Rayne