Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 8 Replies) CPP only project (Read 6385 times)
herman
Junior Member
**
Offline


Posts: 47
Joined: Jan 11th, 2017
CPP only project
May 31st, 2022 at 2:48pm
Print Post  
Quote:

An earlier remark from you :  

Do not use the .cpp only option unles you know the downside. It is for advanced users who really know the arduino build system. You do not have to put code in the .ino files except the setup and loop.

There is no way to create a cpp only project without you deleting .ino and renaming a cpp. This is to prevent users from thinking it is a sensible or recommended option. It is to be avoided, a few projects want to work cpp only in that case they usually also implement/override the main.cpp . If you do that you could no longer seek advice from this forum, you would be on your own in expert mode.


Can't create a cpp only project.
When I start a new project and rename the projectname.ino to projectname.cpp, the visual micro "buttons" disappear and when building VS uses Visual C++ build instead of vmicro build.

Whats steps do I need to take to get that done ?

I do know that I have to solve several issues myself, my main goal (for now) is not using any arduino library include functionality.
When needed, just add a librrary myself as shared item project and set the correct references. No auto find/search/use libaries at all.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: CPP only project
Reply #1 - May 31st, 2022 at 3:16pm
Print Post  
Leave an empty [project_name].ino in the project. We can't distinguish between standard VC++ and Arduino without it.

nb: With a project_name.cpp. the .ino does not have to be empty but anything in it will be ignored.
« Last Edit: May 31st, 2022 at 3:23pm by Tim@Visual Micro »  
Back to top
IP Logged
 
herman
Junior Member
**
Offline


Posts: 47
Joined: Jan 11th, 2017
Re: CPP only project
Reply #2 - Jun 1st, 2022 at 12:57pm
Print Post  
Thx,

When having CPP only, vmicro is still searching and including libraries for the #include directives in the project. I would like to add all required libraries as shared projects manually, none automatic.
That way I have full control of which libraries/versions I use in in which project.

For creating the vcxitems file for a library, are you using a utility program or did you build it yourself ?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: CPP only project
Reply #3 - Jun 1st, 2022 at 3:38pm
Print Post  
The vcxitems is a standard vc++ shared project. We do create them and add files to them to make life easier for users but you are able to create them manually using std. visual studio commands.

The best way to create them for specific library versions is to install the required version of a library and use the visual micro "add library" menu with "clone" and "version" enabled.

https://www.visualmicro.com/page/User-Guide.aspx?doc=Add-Libraries.html
« Last Edit: Jun 1st, 2022 at 3:39pm by Tim@Visual Micro »  
Back to top
IP Logged
 
herman
Junior Member
**
Offline


Posts: 47
Joined: Jan 11th, 2017
Re: CPP only project
Reply #4 - Jun 2nd, 2022 at 7:28am
Print Post  
On vcxitems files : OK, hoped you have a cli version but I know how to create them. Just takes some time to do and organize.

On libraries : Is there any way to prevent automatic searching for needed libraries. 
F.e. I have several own created libraries for use on ESP32, ESP8366, Seeduino and STM32. 
When using them on ESP32 or ESP8266 there is a web interface which is excluded by define guards when used on others as they don't have wifi/web they still trying to do "#include <EspAsyncWebServer.h>"
I have no idea how to solve that for now, but definitely needs (a lot) of work
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: CPP only project
Reply #5 - Jun 2nd, 2022 at 6:35pm
Print Post  
I am not sure you really needed the complexity of the .cpp only project.

You seem to suggest you want two versions of your firmware. One for wifi devices and one for non-wifi.

Considering that the mcu has wifi on board you could leave the libs included and then only initialise and use the wifi when you need to.

Regardless of the route you choose an #include is going to be included in the compile. I think any discussion of switching of library detection would be misleading. It appears that you just need to not #include some headers under certain conditons.

If you really want to exlude code from a compile you can use compiler directives:- #if

Code (C++)
Select All
#ifdef WIFI_ALLOWED
  #include "blah/h"
#endif
 


You can add your own configurations to the list of configurations on the tool bar. You will see the default shows Debug and Release configuration. Drop the list down to add your own.

The docs show how to add a "configuration specific" define. There are also global defines if needed but configuration specific allows a single source code to be built into different firmwares just by changing the selected configuration.

https://www.visualmicro.com/page/User-Guide.aspx?doc=Project-Defines.html

Does this help?

« Last Edit: Jun 2nd, 2022 at 6:36pm by Tim@Visual Micro »  
Back to top
IP Logged
 
herman
Junior Member
**
Offline


Posts: 47
Joined: Jan 11th, 2017
Re: CPP only project
Reply #6 - Jun 3rd, 2022 at 7:59am
Print Post  
The use of #if #endif is exactly the way I try to prevent the use of non-existent libraries for a project.

F.e. 
Code (C++)
Select All
#include "CommandHandler.h"
#include "CommandOutput.h"
#include "Command.h"
#if defined ESP8266 || defined ESP32
#include "EspAsyncWebServer.h"
#include "TelnetServer.h"
#include "WebSocketServer.h"
#endif
#include <set>

#ifdef ESP8266
#include "ESPAsyncUDP.h"   // No asyncUDP support for ESP32
#endif
 



But it seem that the library searching does not take the #defines into account.

When I use this in a new project for on Seeedino XAIO

Code (C++)
Select All
#if false
#include "Ps3Controller.h"
#endif
 



It is still trying to use/compile the library despite that 
1/ It is excluded by the #if directive
2/ The architecture of the Ps3Controller lib is limited to ESP32

Code
Select All
Using library esp32-ps3 version 1.1.0 in folder "file:///c:/userdata/vmicro/Projects/libraries/esp32-ps3"
4/bin/arm-none-eabi-gcc" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -MMD -D__SKETCH_NAME__=\"\"\"LiBIF.ino\"\"\" -DF_CPU=48000000L -DARDUINO=108010 -DARDUINO_SEEED_XIAO_M0 -DARDUINO_ARCH_SAMD -DARDUINO_SAMD_ZERO -D__SAMD21__ -D__SAMD21G18A__ -DARM_MATH_CM0PLUS -DSEEED_XIAO_M0 -DUSB_VID=0x2886 -DUSB_PID=0x802F -DUSBCON -DUSB_CONFIG_POWER=100 -DUSB_MANUFACTURER="\"Seeed\"" -DUSB_PRODUCT="\"Seeed XIAO M0\"" uino/TinyUSB" uino/TinyUSB/Adafruit_TinyUSB_ArduinoCore" uino/TinyUSB/Adafruit_TinyUSB_ArduinoCore/tinyusb/src" Include/" nclude/" -Atmel/CMSIS/Device/ATMEL/" uino" XIAO_m0" "c:\userdata\vmicro\Projects\libraries\esp32-ps3\src\ps3.c" -o "C:\Userdata\VMicro\Projects\LiBIF_SLN\LiBIF\Debug\esp32-ps3\ps3.c.o"

 



Code
Select All
name=PS3 Controller Host
version=1.1.0
author=Jeffrey van Pernis
maintainer=Jeffrey van Pernis
sentence=Control your ESP32 projects with a PS3 controller!
paragraph=Emulate a PS3 console tricking the PS3 controller into connecting with the ESP32.
category=Communication
url=https://github.com/jvpernis/esp32-ps3
architectures=esp32
 


« Last Edit: Jun 3rd, 2022 at 8:01am by herman »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: CPP only project
Reply #7 - Jun 3rd, 2022 at 11:52am
Print Post  
Sounds like you have switched off deep search for libraries. Switch it back on because it uses GCC to find included libs.
  
Back to top
IP Logged
 
herman
Junior Member
**
Offline


Posts: 47
Joined: Jan 11th, 2017
Re: CPP only project
Reply #8 - Jun 5th, 2022 at 9:44am
Print Post  
Yes, I had switched off deep search.

Switching it on solves the inclusion of libraries which within an #ifdef #endif.

But.. then it is failing on 

Code
Select All
Extracting .ino prototypes ...
System.IO.FileNotFoundException: Could not find file 'C:\Userdata\VMicro\Projects\LibIF2_SLN\LibIF2\LibIF2.cpp.interim'.
File name: 'C:\Userdata\VMicro\Projects\LibIF2_SLN\LibIF2\LibIF2.cpp.interim'
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
 



Switching the "Generate Prototypes" project option to false has no effect on this.
(Do not see that as a global option)

What I would like is : 

Do not search for/include  libraries at all
Do not create prototypes.

  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: CPP only project
Reply #9 - Jun 5th, 2022 at 10:47am
Print Post  
Thanks, we have replicated the problem with the .interim when using your own .cpp. We will look into it and fix over the next 48 hours.

To switch off prototypes in the current version that you are using you can add a board.txt to the project. Use "Add Code>Local Board.txt" menu or create one yourself. Add this setting into it:-

Code
Select All
vm.ctags=false 

« Last Edit: Jun 5th, 2022 at 1:58pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: CPP only project
Reply #10 - Jun 6th, 2022 at 8:49pm
Print Post  
We have looked into this and your suggestions are a great idea...

We will procude a vMicro menu option that switches to using the shared libraries that are References. This means that regardless of .ino or .cpp the deep search would not be required. We should be able to do that this week.

There is also a new release (22.04.29-11) of Visual Micro that fixes the deep search for cpp only projects. It also automatically switches off prototypes for cpp only projects. The project "automatic prototypes=false" setting is also honoured when deep search for libraries is enabled. I already posted previously how to switch off prototypes therefore the latest release doesn't give you

https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES

From a library and prototypes point of view, after the next update you should be able to achieve the same end result with a normal arduino .ino project as can be achieved with a cpp only project.


  
Back to top
IP Logged
 
herman
Junior Member
**
Offline


Posts: 47
Joined: Jan 11th, 2017
Re: CPP only project
Reply #11 - Jul 1st, 2022 at 7:08am
Print Post  
Hi Tim,

is there any news on this ?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: CPP only project
Reply #12 - Jul 1st, 2022 at 1:44pm
Print Post  
I think so. Please install the latest release. There have been a number of improvements that should help. 

Please try it and let's see where we are up to.

Make sure you are ysing the default settings with deep search on.

Improvements such as:- caching should be better and prototypes are ignored for cpp only.

It should work smoothly and quickly now. The only remaining discussion should be if only the shared libraries are found during deep search or how that should work. In theory it should not be a discussion because things should work as you need. That would be simpler for all users because it sticks to the arduino rules. It doesn't preclude an option to allow the rules to be broken but every option gets switched on by many, without undertsnading the impact. Support can become difficult. So we try to avoid breaking the rules if possible.

Thanks
« Last Edit: Jul 1st, 2022 at 1:48pm by Tim@Visual Micro »  
Back to top
IP Logged
 
herman
Junior Member
**
Offline


Posts: 47
Joined: Jan 11th, 2017
Re: CPP only project
Reply #13 - Jul 8th, 2022 at 10:29am
Print Post  
I am using the latest VMicro version.

- Create a new project.
- Add a new .cpp file using the same name as the project.
- Compile : 

Result : 

Code
Select All
Compiling 'NewCPP' for 'LOLIN D32                                                                                                                           (ArduinoCores_d32)'
Build Folder: "file:///C:/Userdata/VMicro/Projects/NewCPP_SLN/NewCPP/Debug/"
Summary: Header=1 Prototypes=1 Imports=0
Additional Defines:
Architecture Tools: tensa-esp32-elf/bin/"
Api: 1.2022.0429-5
Sketch Book: "file:///c:/userdata/vmicro/Projects"

Using NewCPP.cpp as the intial project code

Sketch Include Paths
Core Include Paths
Include Path sp32"
Include Path s/d32"
recipe.hooks.prebuild.1.pattern
Exec: C:\Userdata\VMicro\Projects\NewCPP_SLN\NewCPP\Debug\\.vm_sys\cmd_exec.bat
if exist "C:\Userdata\VMicro\Projects\NewCPP_SLN\NewCPP\partitions.csv" COPY /y "C:\Userdata\VMicro\Projects\NewCPP_SLN\NewCPP\partitions.csv" "C:\Userdata\VMicro\Projects\NewCPP_SLN\NewCPP\Debug\\partitions.csv"
"C:\Userdata\VMicro\Projects\NewCPP_SLN\NewCPP\Debug\\.vm_sys\cmd_exec.bat"
C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE>chcp 65001  1>NUL 2>NUL
C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE>if exist "C:\Userdata\VMicro\Projects\NewCPP_SLN\NewCPP\partitions.csv" COPY /y "C:\Userdata\VMicro\Projects\NewCPP_SLN\NewCPP\partitions.csv" "C:\Userdata\VMicro\Projects\NewCPP_SLN\NewCPP\Debug\\partitions.csv"
recipe.hooks.prebuild.2.pattern
Exec: C:\Userdata\VMicro\Projects\NewCPP_SLN\NewCPP\Debug\\.vm_sys\cmd_exec.bat
if not exist "C:\Userdata\VMicro\Projects\NewCPP_SLN\NewCPP\Debug\\partitions.csv" if exist rtitions.csv" COPY rtitions.csv" "C:\Userdata\VMicro\Projects\NewCPP_SLN\NewCPP\Debug\\partitions.csv"
"C:\Userdata\VMicro\Projects\NewCPP_SLN\NewCPP\Debug\\.vm_sys\cmd_exec.bat"
C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE>chcp 65001  1>NUL 2>NUL
C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE>if not exist "C:\Userdata\VMicro\Projects\NewCPP_SLN\NewCPP\Debug\\partitions.csv" if exist rtitions.csv" COPY rtitions.csv" "C:\Userdata\VMicro\Projects\NewCPP_SLN\NewCPP\Debug\\partitions.csv"
recipe.hooks.prebuild.3.pattern
Exec: C:\Userdata\VMicro\Projects\NewCPP_SLN\NewCPP\Debug\\.vm_sys\cmd_exec.bat
if not exist "C:\Userdata\VMicro\Projects\NewCPP_SLN\NewCPP\Debug\\partitions.csv" COPY s\default.csv" "C:\Userdata\VMicro\Projects\NewCPP_SLN\NewCPP\Debug\\partitions.csv"
"C:\Userdata\VMicro\Projects\NewCPP_SLN\NewCPP\Debug\\.vm_sys\cmd_exec.bat"
C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE>chcp 65001  1>NUL 2>NUL
C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE>if not exist "C:\Userdata\VMicro\Projects\NewCPP_SLN\NewCPP\Debug\\partitions.csv" COPY s\default.csv" "C:\Userdata\VMicro\Projects\NewCPP_SLN\NewCPP\Debug\\partitions.csv"
recipe.hooks.prebuild.4.pattern
Exec: C:\Userdata\VMicro\Projects\NewCPP_SLN\NewCPP\Debug\\.vm_sys\cmd_exec.bat
IF EXIST "C:\Userdata\VMicro\Projects\NewCPP_SLN\NewCPP\bootloader.bin" ( COPY /y "C:\Userdata\VMicro\Projects\NewCPP_SLN\NewCPP\bootloader.bin"  ) ELSE ( IF EXIST otloader.bin" ( COPY otloader.bin"  ) ELSE ( COPY /y \bin\bootloader_dio_80m.bin"  ) )
"C:\Userdata\VMicro\Projects\NewCPP_SLN\NewCPP\Debug\\.vm_sys\cmd_exec.bat"
C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE>chcp 65001  1>NUL 2>NUL
C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE>IF EXIST "C:\Userdata\VMicro\Projects\NewCPP_SLN\NewCPP\bootloader.bin" (COPY /y "C:\Userdata\VMicro\Projects\NewCPP_SLN\NewCPP\bootloader.bin"   )  ELSE (IF EXIST otloader.bin" (COPY otloader.bin"   )  ELSE (COPY /y \bin\bootloader_dio_80m.bin"   ) )
        1 file(s) copied.
recipe.hooks.prebuild.5.pattern
Exec: C:\Userdata\VMicro\Projects\NewCPP_SLN\NewCPP\Debug\\.vm_sys\cmd_exec.bat
if exist "C:\Userdata\VMicro\Projects\NewCPP_SLN\NewCPP\build_opt.h" COPY /y "C:\Userdata\VMicro\Projects\NewCPP_SLN\NewCPP\build_opt.h" "C:\Userdata\VMicro\Projects\NewCPP_SLN\NewCPP\Debug\\build_opt.h"
"C:\Userdata\VMicro\Projects\NewCPP_SLN\NewCPP\Debug\\.vm_sys\cmd_exec.bat"
C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE>chcp 65001  1>NUL 2>NUL
C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE>if exist "C:\Userdata\VMicro\Projects\NewCPP_SLN\NewCPP\build_opt.h" COPY /y "C:\Userdata\VMicro\Projects\NewCPP_SLN\NewCPP\build_opt.h" "C:\Userdata\VMicro\Projects\NewCPP_SLN\NewCPP\Debug\\build_opt.h"
recipe.hooks.prebuild.6.pattern
Exec: C:\Userdata\VMicro\Projects\NewCPP_SLN\NewCPP\Debug\\.vm_sys\cmd_exec.bat
if not exist "C:\Userdata\VMicro\Projects\NewCPP_SLN\NewCPP\Debug\\build_opt.h" type nul > "C:\Userdata\VMicro\Projects\NewCPP_SLN\NewCPP\Debug\\build_opt.h"
"C:\Userdata\VMicro\Projects\NewCPP_SLN\NewCPP\Debug\\.vm_sys\cmd_exec.bat"
C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE>chcp 65001  1>NUL 2>NUL
C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE>if not exist "C:\Userdata\VMicro\Projects\NewCPP_SLN\NewCPP\Debug\\build_opt.h" type nul  1>"C:\Userdata\VMicro\Projects\NewCPP_SLN\NewCPP\Debug\\build_opt.h"
		Pre-build discovered additional source: 'file:///C:\Userdata\VMicro\Projects\NewCPP_SLN\NewCPP\Debug\build_opt.h'

Deep search for libraries ...
p32-elf\bin\xtensa-esp32-elf-g++" .... (truncated)
p32-elf\bin\xtensa-esp32-elf-g++" ... (truncated)

Extracting .ino prototypes ...
System.IO.FileNotFoundException: Could not find file 'C:\Userdata\VMicro\Projects\NewCPP_SLN\NewCPP\NewCPP.cpp.interim'.
File name: 'C:\Userdata\VMicro\Projects\NewCPP_SLN\NewCPP\NewCPP.cpp.interim'
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)
   at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks)
   at Visual.Micro.McuUtils.MicroIO.FileHelper.ReadAllTextWithEncoding(String fn, Encoding overrideEncoding)
   at Visual.Micro.MiroAppAPI.SketchCompilerArduino.TryRunCTags(Board brd, List`1 includePaths, SketchLibraryListUnSorted knownLibs)
   at Visual.Micro.MiroAppAPI.SketchCompilerArduino._compile(SketchBuilder lsketch, String primaryClassName, Boolean verbose, Boolean isDebug)
   at Visual.Micro.MiroAppAPI.SketchCompilerArduino.compile(SketchBuilder lsketch, String primaryClassName, Boolean verbose, Boolean isDebug)
   at Visual.Micro.Visual.Studio.Arduino.AddInApp._CompileDo(Object oProject, Boolean IsDebugStartCommand, Boolean isRebuild, Boolean UseGdbIfAvailable)
   at Visual.Micro.Visual.Studio.Arduino.AddInApp.CompileDo(Object oProject, Boolean IsDebugStartCommand, Boolean isRebuild, Boolean UseGdbIfAvailable)
   at Visual.Micro.Visual.Studio.Arduino.AddInApp.Compile(Object oProject, Boolean IsDebugStartCommand, Boolean IsRebuild, Boolean UseGdbIfAvailable)

 

  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: CPP only project
Reply #14 - Jul 8th, 2022 at 11:43am
Print Post  
Please review the latest release notes and apply it. Looks like you are still using a version from some time ago?
  
Back to top
IP Logged
 
herman
Junior Member
**
Offline


Posts: 47
Joined: Jan 11th, 2017
Re: CPP only project
Reply #15 - Jul 17th, 2022 at 1:43pm
Print Post  
Working with the latest version, current activity is solving an issue in the esp8266 MDNS library. :

Create new project MDNS_Issue.ino
Add MDNS_Issue.cpp to project (which includes setup & loop) -> Compiles OK.
Show/Hide Hidden files show src\core\...

Add #include <ESP8266WiFi.h> and #include <ESP8266mDNS.h> to MDNS_issue.cpp

Compiling -> Both libraries are compiled, so added to the project 

I prefer : Do not add at all, just have the compile have "not found .h file", so I can add the correct library, I might have a local library which I need to use.

Show/Hide Hidden files shows only core, no libraries.

Add code to use the library : WiFi.mode(WIFI_AP_STA);
Compiles OK.
Intellisense on the mode method only finds declaration, not definition

Add Libray esp8266WiFi library using "Create shared project when including libraries"
ESP8266WiFi library shows up as shared project, show/hide hidden files only shows core.
Compiles OK
Intellisense on the mode method finds both declaration and definition.


One additional : 
When, in solution exporer, I use the "Show All Files" to see the actual files & directories.
Then the core files all show up in the "top project directory", mixing with the actual project files.
Would expect to show up in a directory or not at all (they are not in the actual directory)

  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: CPP only project
Reply #16 - Jul 17th, 2022 at 2:24pm
Print Post  
Which solution explorer view are you using? "Show all files?" 

When "not" in "show all files" mode, the shortcuts to core should show under the src_micro-readonly virtual folder.



  
Back to top
IP Logged
 
herman
Junior Member
**
Offline


Posts: 47
Joined: Jan 11th, 2017
Re: CPP only project
Reply #17 - Jul 17th, 2022 at 6:45pm
Print Post  
That is what I expected. But they do not.

See attached screen capture
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: CPP only project
Reply #18 - Jul 17th, 2022 at 7:26pm
Print Post  
If using shared libraries you don't need the short cuts. 

Please post the information requested in yellow above.
« Last Edit: Jul 17th, 2022 at 7:27pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint