AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=58)
-   -   Issue with my dev environment, during compile it cannot find files (https://forums.alliedmods.net/showthread.php?t=337623)

stece 05-03-2022 14:37

Issue with my dev environment, during compile it cannot find files
 
A while ago we started writing a Sourcemod, originally our sourcemod dependencies were just in the include folder of our project.

After a while, we divided our include folder into include/engine containing sourcemod and include/thirdparty to include other libraries.

On my computer, Visiual Studio is unable to compile. It gives an error:
Code:

\scripting\include\engine/json.inc(40) : fatal error 183: cannot read from file: "json/definitions"
Which basically is that it doesn't find the correct files in the include/engine/json folder, while it most definitely is there.

My co-author doesn't have this issue and doesn't remember changing any config. So I don't understand why I'm having issues. Is there a config for the Visual Studio Sourcemod plugin where you need to change a sourcemod path or something? I've checked and don't see any. :/

asherkin 05-04-2022 09:24

Re: Issue with my dev environment, during compile it cannot find files
 
The relative include path behaviour is different pre-1.11 between Linux and Windows (due to a bug).

stece 05-05-2022 02:51

Re: Issue with my dev environment, during compile it cannot find files
 
Quote:

Originally Posted by asherkin (Post 2778630)
The relative include path behaviour is different pre-1.11 between Linux and Windows (due to a bug).

Can I change it somewhere?

nosoop 05-07-2022 07:58

Re: Issue with my dev environment, during compile it cannot find files
 
My preferred approach here is to have third-party includes in a separate directory within the project, then pass -i to specify the additional include paths.

Not sure how well your IDE of choice handles project-specific compile flags though; I have my own mostly free-standing build tooling for it.

Bacardi 05-07-2022 13:37

Re: Issue with my dev environment, during compile it cannot find files
 
1 Attachment(s)
...pure guess.
From project "properties", try add folder in here "Additional Include Directories"
Attachment 194939


All times are GMT -4. The time now is 04:04.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.