Skip to main content

All Questions

0 votes
2 answers
110 views

Incorporating a C++ namespace with header/source separation

In a project of C++ utility functions I am hand rolling for personal use, I am grouping functions for parts of the library in two files. So for a digitmanip toolset there's I am separating the source ...
Jordan's user avatar
  • 54
0 votes
1 answer
320 views

How to share Library files/ include folders between projects in a single solution on Visual Studio 2022?

I have a VS solution with two separate projects, but I would like to share the external libraries between them. How would I go about this? Let's say I have two projects in one Solution on Visual ...
Tekarou's user avatar
1 vote
2 answers
329 views

How can I preserve directory structure when creating a TAR file?

I'm using microtar in a Qt 6 C++ project. I'm trying to archive a directory. I want to archive a folder's contents, its subfolders and (text only) files, and preserve the directory structure within ...
okaycoolneat's user avatar
0 votes
1 answer
556 views

CMake, Public private folder structure

If I have a folder-structure like this: . ├── Core │   ├── Private │   │   └── example.cpp │   └── Public │   └── example.h └── Math ├── Private │   └── Math.cpp └── Public └── ...
Fabian Oppermann's user avatar
0 votes
0 answers
99 views

Use CMake with compiled library and retain include lib/file.hpp structure

I have a project with the following structure, where mod1 and 2 are dependencies that live in external repos but are undergoing developement in parallel: projFoo - inc - component1 -subcomp11 ...
darmual's user avatar
  • 269
1 vote
1 answer
874 views

Directory structure for a C++ template library

I am creating a C++ template library which I intend to use as a vital component in a number of future projects. Due to the size of the library, I am dividing the code between a number of files, some ...
StillUsesFORTRAN's user avatar
3 votes
1 answer
2k views

c++ CMake project structure for lib and executable [closed]

I have a question regarding how to structure a c++ project and build that using CMake (inside of CLion). I am very new to c++ (I started to learn the language only two weeks ago) and to CMake (I haven'...
Jesse van der Pluijm's user avatar
0 votes
4 answers
1k views

Can't load Image source in QML Image on Raspberry Pi

I'm cross compiling a Qt project using Qt Creator and I'm getting the following error: qrc:/main.qml:26:25: QML Image: Cannot open: qrc:/images/imgA.png The directory structure on target device is: . ...
glamis's user avatar
  • 95
1 vote
1 answer
1k views

filesystem parent path and a ".." string to get back to parent path

Im not using boost, im using C++17's filesystem which is basically based on boosts filesystem. I want to list directories, filenames and parent directory shortcut ".." using C++ filesystem. ...
user avatar
5 votes
0 answers
3k views

Is this a good directory structure to maintain a large C++ project? [closed]

I have been trying to figure out a good directory structure that is maintainable for large C++ projects. During my search I came across this resource here link. If I loosely follow the structure ...
nick2225's user avatar
  • 555
2 votes
2 answers
7k views

How should I organize my directory structure when using CMake with C++ inheritance? [closed]

Currently I have a directory structure that looks like the following . ├── CMakeLists.txt ├── Base │   ├── CMakeLists.txt │   ├── include │   │   └── base.h │   └── src │   └── base.cpp ├── ...
nick2225's user avatar
  • 555
0 votes
0 answers
7k views

How to fix 'g++: fatal error: no input files compilation terminated.' error

I'm having some trouble with my first bigger makefile project. I got a bigger Library i'm using in my c++ project. More accurate: In my .cpp files and .h files I need to include some headers out of ...
Kai Schoening's user avatar
2 votes
1 answer
442 views

folder structure for c++ programming

I am using visual studios. Below is my current project folder structure. I am actually practicing all codes in a book. So, i want to create a folder for each chapter and write each exercise in a ...
rawwar's user avatar
  • 4,932
0 votes
0 answers
288 views

Compiling and Linking CMake Projects (specifically OpenGL's glfw)

I am trying to understand how to compile and link another CMake project into my project without modifying the previous projects CMake configuration. In this case I want to build and compile the ...
user avatar
9 votes
2 answers
15k views

Move a file into another folder on disk - Visual Studio

I've created some classes in VS and I can't move them in the folder I want them to be. they are in the same folder of the project, at the root. But I'd like them to be in a "source" folder. If I move ...
Maxime Parata's user avatar

15 30 50 per page