If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Re: VS2010 source location problem.

Originally Posted by lucky6969b

Then, I have a path for the source specified in the "source folder" of the project in the project properties section,

I don't understand. Where is this setting? Did you mean the "Source Directories" setting under the "VC++ Directories" section in the project properties? If so, did you read the description of that setting?

Originally Posted by lucky6969b

Inside this folder I have src folder in which contains a .cpp file
The file is hard-coded with path src\OgrerecastApplication.cpp

But the VS2010 compiler still cannot find this file. I wonder what other settings are involved?
Thanks
Jack

Hard coded where? What do you mean with "VS2010 compiler still cannot find this file"?

Cheers, D Drmmr

Please put [code][/code] tags around your code to preserve indentation and make it more readable.

As long as man ascribes to himself what is merely a posibility, he will not work for the attainment of it. - P. D. Ouspensky

Re: VS2010 source location problem.

If you add the file to the project that should be good enough. If you try to find headers based on $(OGRE_HOME) you have to set the environment variable before starting VS. Either the process that starts VS has to define it or it has to be defined in the global environment (sometimes it requires log off/log on)

Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by
definition, not smart enough to debug it.
- Brian W. Kernighan

Re: VS2010 source location problem.

Thanks S_M_A, All your assumptions are correct. I meant source directories, yes, the compiler cannot find the cpp file
There is a question mark on the right hand side of the tree control for that particular .cpp file

Re: VS2010 source location problem.

Originally Posted by lucky6969b

Thanks S_M_A, All your assumptions are correct. I meant source directories, yes, the compiler cannot find the cpp file
There is a question mark on the right hand side of the tree control for that particular .cpp file

Like I said, read the description of the "source directories" setting. It's only related to intellisense.
The files that are included in your project are referenced by a path that is relative to the project file. If they cannot be found either fix the directory structure or remove the file from the project and add the correct one.

Cheers, D Drmmr

Please put [code][/code] tags around your code to preserve indentation and make it more readable.

As long as man ascribes to himself what is merely a posibility, he will not work for the attainment of it. - P. D. Ouspensky