Problems with finding directory

Moderator: cpp4robots_admin

Patrik Björnsson

Problems with finding directory

Post by Patrik Björnsson »

Hello!

I have a Little bit of a problem when trying to use your Software.
I have installed the "Cpp4Robots" extension and have the right version of Microsoft Visual studio (2017 Community)
but when i try to #include <EV3_Sound.h> or any of the directories i just get the "cannot open source file...".
I have checked and it is enabled in the Tools/Extensions menu.

Do you know what could be causing this?
Have i missed something?
I am somewhat used to C# but im kinda new to C so i might be missing something obvious.

Thank you!
cpp4robots_admin
Administrátor fóra
Posts: 21
Joined: 04 Nov 2020 14:34
Contact:

Re: Problems with finding directory

Post by cpp4robots_admin »

Hello Patrik,

it is only problem with MS Visual Studio IntelliSense.
These header files as EV3_LCDDisplay.h, EV3_Sound.h, etc. are not missing in installation of Cpp4Robots extension.

Here is the solution for your problem with MS Visual Studio IntelliSense:
I suppose, that your installation of Cpp4Robots extension is in folder C:\Program Files (x86)\JSiebSW\Cpp4Robots\
Right click on your current project in Solution Explorer window and select item Properties.
Select in property window: Configuration Properties -> C/C++ -> General-> Additional Include Directories -> <Edit...>
Insert new line in "Additional Include Directories" window: C:\ProgramFiles(x86)\JSiebSW\Cpp4Robots\TargetDevice\Lego\EV3\API\include

Cpp4Robots Support


Last bumped by Anonymous on 10 Mar 2021 01:09.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests