Add Windows build with clang

This commit is contained in:
2026-02-23 16:29:49 +01:00
parent f1f11ecf9b
commit 04c8bf61f7
4 changed files with 63 additions and 5 deletions

View File

@@ -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();