diff --git a/buildall.bat b/buildall.bat new file mode 100644 index 0000000..cacdbc5 --- /dev/null +++ b/buildall.bat @@ -0,0 +1,5 @@ +REM MS yo me cago en tus putisimos muertos que cojones es este bug centenario estupido y miserable con los parametros? +REM este comentario es de cuando me lo encontre hace rato, pero me hace gracia, asi que se queda + +CALL buildlib.bat +CALL buildtest.bat diff --git a/builddall.bat b/builddall.bat new file mode 100644 index 0000000..122e1ea --- /dev/null +++ b/builddall.bat @@ -0,0 +1,5 @@ +REM MS yo me cago en tus putisimos muertos que cojones es este bug centenario estupido y miserable con los parametros? +REM este comentario es de cuando me lo encontre hace rato, pero me hace gracia, asi que se queda + +CALL builddlib.bat +CALL builddtest.bat diff --git a/builddlib.bat b/builddlib.bat new file mode 100644 index 0000000..e69d0df --- /dev/null +++ b/builddlib.bat @@ -0,0 +1,3 @@ +clang++ -DDEBUG -D_DEBUG -shared src\tmrtsc.cpp -o build\libtmrtscd.dll -Wall -Wextra -Wpedantic -std=c++11 -g -gcodeview -Wl,-pdb= -L C:\capybara\libclang\x86_64-w64-mingw32\bin -Wl,-Bstatic -l c++ -l unwind --verbose + +REM -lmsvcrt -lucrtbase -lvcruntime140_app diff --git a/builddtest.bat b/builddtest.bat new file mode 100644 index 0000000..e729880 --- /dev/null +++ b/builddtest.bat @@ -0,0 +1,4 @@ +clang++ -DDEBUG -D_DEBUG -dynamic src\test\test.cpp -o build\testd.exe -Wall -Wextra -Wpedantic -std=c++11 -g -gcodeview -Wl,-pdb= -L C:\capybara\libclang\x86_64-w64-mingw32\bin -L D:\Contenido\Capybara\Cositas\tmr\build -Wl,-Bstatic -l c++ -l unwind -Wl,-Bdynamic -l tmrtsc --verbose + +REM -fms-runtime-lib dll_dbgx +REM -lmsvcrt -lucrtbase -lvcruntime140_app diff --git a/buildlib.bat b/buildlib.bat index 37c7ea6..8c6000b 100644 --- a/buildlib.bat +++ b/buildlib.bat @@ -1,3 +1,2 @@ -clang++ -DDEBUG -shared src\tmrtsc.cpp -o build\libtmrtsc.dll -Wall -Wextra -Wpedantic -std=c++11 -g -gcodeview -Wl,-pdb= -L C:\capybara\libclang\x86_64-w64-mingw32\bin -Wl,-Bstatic -l c++ -l unwind --verbose +clang++ -shared src\tmrtsc.cpp -o build\libtmrtsc.dll -Wall -Wextra -Wpedantic -std=c++11 -L C:\capybara\libclang\x86_64-w64-mingw32\bin -Wl,-Bstatic -l c++ -l unwind --verbose -REM -lmsvcrt -lucrtbase -lvcruntime140_app diff --git a/buildtest.bat b/buildtest.bat index 7fbd32a..3ea2ae5 100644 --- a/buildtest.bat +++ b/buildtest.bat @@ -1,4 +1 @@ -clang++ -DDEBUG -dynamic src\test\test.cpp -o build\test.exe -Wall -Wextra -Wpedantic -std=c++11 -g -gcodeview -Wl,-pdb= -L C:\capybara\libclang\x86_64-w64-mingw32\bin -L D:\Contenido\Capybara\Cositas\tmr\build -Wl,-Bstatic -l c++ -l unwind -Wl,-Bdynamic -l tmrtsc --verbose - -REM -fms-runtime-lib dll_dbgx -REM -lmsvcrt -lucrtbase -lvcruntime140_app +clang++ -dynamic src\test\test.cpp -o build\test.exe -Wall -Wextra -Wpedantic -std=c++11 -L C:\capybara\libclang\x86_64-w64-mingw32\bin -L D:\Contenido\Capybara\Cositas\tmr\build -Wl,-Bstatic -l c++ -l unwind -Wl,-Bdynamic -l tmrtsc --verbose \ No newline at end of file diff --git a/src/test/test.cpp b/src/test/test.cpp index 4076133..1587e16 100644 --- a/src/test/test.cpp +++ b/src/test/test.cpp @@ -2,14 +2,8 @@ #define UNICODE #define WIN32_LEAN_AND_MEAN #define DllImport __declspec( dllimport ) - #define _DEBUG #define _MT #define _DLL - /* - * #define _MT - * #define _DLL - * #define _DEBUG - */ #include #include #endif diff --git a/src/tmrtsc.hpp b/src/tmrtsc.hpp index f1cfe62..5eb10b5 100644 --- a/src/tmrtsc.hpp +++ b/src/tmrtsc.hpp @@ -8,14 +8,8 @@ #define _WIN32_WINNT _WIN32_WINNT_WIN10 //0x0A00 #define MAX_KEY_LENGTH 255 #define MAX_VALUE_NAME 32767 - #define _DEBUG #define _MT #define _DLL - /* - * #define _MT - * #define _DLL - * #define _DEBUG - */ #include #include #include