Page 1 of 1

C++ building issue

Posted: Thu Jul 16, 2020 10:16 pm
by jayn23
Hi,

i am very new to C++ so please dont judge me :P

I have been trying to build a project from source code i found and seem to have an issue,
i have added all Lib and Include directories to appropriate location and when i build as a win32 project i have no issue and file is successfully created.
when i try to build the exact same project under x64, i get an error msg that *.h " No such file or directory" for all files that previously worked.
how can i fix this?

i am building from 3dsmax SDK and these files seem to be relevant for both x32 and x64 as far as i can tell

Thanks in advance

Re: C++ building issue

Posted: Thu Jul 16, 2020 10:40 pm
by ikskoks
If you're using Visual Studio, then you probably have to change configuration in project settings for your new build
like adding new include directories or library directories
https://imgur.com/a/y9HrYaH
https://imgur.com/a/FLQ5PG2

But remember to choose Configuration and platform in the settings window first
https://imgur.com/a/6fzTXiy

Re: C++ building issue

Posted: Thu Jul 16, 2020 11:06 pm
by jayn23
If you're using Visual Studio, then you probably have to change configuration in project settings for your new build
like adding new include directories or library directories
https://imgur.com/a/y9HrYaH
https://imgur.com/a/FLQ5PG2

But remember to choose Configuration and platform in the settings window first
https://imgur.com/a/6fzTXiy
Thanks for the fast reply

I am using a 2013 3ds max SDK and the only files in the x64 folder of the SDK are .lib which i have included in my project (i also left the x32 version)
but all the .h and .cpp files are under the x86 the i assume the are relevant for both

I changed my platform and configuration unfortunately that didn't work

any more tricks i could try?

Re: C++ building issue

Posted: Thu Jul 16, 2020 11:25 pm
by ikskoks
Can you attach a screenshots of your additional include directories and additional library directories (in both configurations)?
And also some listing or screenshots of source folder structure?

Re: C++ building issue

Posted: Fri Jul 17, 2020 12:23 am
by jayn23
ill PM you all the pictures

Re: C++ building issue

Posted: Fri Jul 17, 2020 10:05 pm
by ikskoks
Ok, I have answered by PM.

Re: C++ building issue

Posted: Sat Jul 18, 2020 7:10 pm
by jayn23
Ill just update that one of the many solutions suggested by ikskoks worked for me so thanks a lot.
i ended up using absolute paths for my include files.