-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wrong include folders structure, missing DLL exports
- Loading branch information
Showing
12 changed files
with
102 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#ifndef THINGY_H | ||
#define THINGY_H | ||
|
||
#ifdef Thingy_EXPORTS // CMake sets that when BUILD_SHARED_LIBS=1 | ||
#ifdef _MSC_VER // for MSVC | ||
// export on compiling the DLL (when building) | ||
#define DLLEXPORT __declspec(dllexport) | ||
//#elif __GNUC__ >= 4 // for GCC | ||
// #define DLLEXPORT __attribute__ ((visibility("default"))) | ||
#endif // any other compilers require anything like that? | ||
#else | ||
#ifdef _MSC_VER // for MSVC | ||
// import on using the created DLL (when using in projects) | ||
#define DLLEXPORT __declspec(dllimport) | ||
//#elif __GNUC__ >= 4 // for GCC | ||
// // something here for GCC? | ||
#endif // any other compilers require anything like that? | ||
#endif | ||
|
||
#ifndef DLLEXPORT | ||
#define DLLEXPORT // so it doesn't fail being undefined | ||
#endif | ||
|
||
namespace dpndnc | ||
{ | ||
DLLEXPORT void doThingy(); | ||
} | ||
|
||
#endif // THINGY_H |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#include <iostream> | ||
|
||
#include <Thingy/thingy.h> | ||
#include "stuff.h" | ||
|
||
namespace dpndnc | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#ifndef ANOTHER_H | ||
#define ANOTHER_H | ||
|
||
#ifdef AnotherLibrary_EXPORTS // CMake sets that when BUILD_SHARED_LIBS=1 | ||
#ifdef _MSC_VER // for MSVC | ||
// export on compiling the DLL (when building) | ||
#define DLLEXPORT __declspec(dllexport) | ||
//#elif __GNUC__ >= 4 // for GCC | ||
// #define DLLEXPORT __attribute__ ((visibility("default"))) | ||
#endif // any other compilers require anything like that? | ||
#else | ||
#ifdef _MSC_VER // for MSVC | ||
// import on using the created DLL (when using in projects) | ||
#define DLLEXPORT __declspec(dllimport) | ||
//#elif __GNUC__ >= 4 // for GCC | ||
// // something here for GCC? | ||
#endif // any other compilers require anything like that? | ||
#endif | ||
|
||
#ifndef DLLEXPORT | ||
#define DLLEXPORT // so it doesn't fail being undefined | ||
#endif | ||
|
||
namespace prjct | ||
{ | ||
namespace lbrAnother | ||
{ | ||
DLLEXPORT void doAnother(); | ||
#ifndef THINGY_INTERFACE | ||
DLLEXPORT void doTheThing(); | ||
#endif | ||
} | ||
} | ||
|
||
#endif // ANOTHER_H |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
#include <Thingy/thingy.h> | ||
#endif | ||
|
||
#include <Another/another.h> | ||
#include "stuff.h" | ||
|
||
namespace prjct | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#ifndef SOME_H | ||
#define SOME_H | ||
|
||
#ifdef SomeLibrary_EXPORTS // CMake sets that when BUILD_SHARED_LIBS=1 | ||
#ifdef _MSC_VER // for MSVC | ||
// export on compiling the DLL (when building) | ||
#define DLLEXPORT __declspec(dllexport) | ||
//#elif __GNUC__ >= 4 // for GCC | ||
// #define DLLEXPORT __attribute__ ((visibility("default"))) | ||
#endif // any other compilers require anything like that? | ||
#else | ||
#ifdef _MSC_VER // for MSVC | ||
// import on using the created DLL (when using in projects) | ||
#define DLLEXPORT __declspec(dllimport) | ||
//#elif __GNUC__ >= 4 // for GCC | ||
// // something here for GCC? | ||
#endif // any other compilers require anything like that? | ||
#endif | ||
|
||
#ifndef DLLEXPORT | ||
#define DLLEXPORT // so it doesn't fail being undefined | ||
#endif | ||
|
||
namespace prjct | ||
{ | ||
namespace lbrSome | ||
{ | ||
DLLEXPORT void doSome(); | ||
} | ||
} | ||
|
||
#endif // SOME_H |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#include <iostream> | ||
|
||
#include <Some/some.h> | ||
#include "stuff.h" | ||
|
||
namespace prjct | ||
|