Add Windows build with clang
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
#include <iostream>
|
||||
|
||||
#ifdef _WIN32
|
||||
#define EXPORT __declspec(dllexport)
|
||||
#else
|
||||
#define EXPORT
|
||||
#endif
|
||||
|
||||
using namespace std;
|
||||
|
||||
class nt {
|
||||
@@ -9,7 +15,7 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
void print_obj() {
|
||||
EXPORT void print_obj() {
|
||||
cout << "Hello from function\n";
|
||||
nt obj;
|
||||
obj.print();
|
||||
|
||||
Reference in New Issue
Block a user