Join also our Discord channel! Click here.

C++ building issue

Coders and would-be coders alike, this is the place to talk about programming.
Post Reply
jayn23
veteran
Posts: 130
Joined: Sun Jul 17, 2011 9:30 pm
Has thanked: 34 times
Been thanked: 119 times

C++ building issue

Post by jayn23 » Thu Jul 16, 2020 10:16 pm

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

User avatar
ikskoks
ultra-veteran
ultra-veteran
Posts: 445
Joined: Thu Jul 26, 2012 5:06 pm
Location: Poland, Łódź
Has thanked: 410 times
Been thanked: 134 times
Contact:

Re: C++ building issue

Post by ikskoks » Thu Jul 16, 2020 10:40 pm

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

jayn23
veteran
Posts: 130
Joined: Sun Jul 17, 2011 9:30 pm
Has thanked: 34 times
Been thanked: 119 times

Re: C++ building issue

Post by jayn23 » Thu Jul 16, 2020 11:06 pm

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?

User avatar
ikskoks
ultra-veteran
ultra-veteran
Posts: 445
Joined: Thu Jul 26, 2012 5:06 pm
Location: Poland, Łódź
Has thanked: 410 times
Been thanked: 134 times
Contact:

Re: C++ building issue

Post by ikskoks » Thu Jul 16, 2020 11:25 pm

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?

jayn23
veteran
Posts: 130
Joined: Sun Jul 17, 2011 9:30 pm
Has thanked: 34 times
Been thanked: 119 times

Re: C++ building issue

Post by jayn23 » Fri Jul 17, 2020 12:23 am

ill PM you all the pictures

User avatar
ikskoks
ultra-veteran
ultra-veteran
Posts: 445
Joined: Thu Jul 26, 2012 5:06 pm
Location: Poland, Łódź
Has thanked: 410 times
Been thanked: 134 times
Contact:

Re: C++ building issue

Post by ikskoks » Fri Jul 17, 2020 10:05 pm

Ok, I have answered by PM.

jayn23
veteran
Posts: 130
Joined: Sun Jul 17, 2011 9:30 pm
Has thanked: 34 times
Been thanked: 119 times

Re: C++ building issue

Post by jayn23 » Sat Jul 18, 2020 7:10 pm

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.

Post Reply