Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The output file doesn't output anything on compiling on Windows with MinGW-w64 #36

Open
BlackXDragon opened this issue Dec 20, 2020 · 0 comments

Comments

@BlackXDragon
Copy link

Let me first say that I'm a complete newbie to everything related to C++.

I've tried compiling the example code on Windows using MinGW-w64. It compiles without throwing an error, but the executable doesn't output anything to the console upon running. Below in the complete log. Please help me figure out the problem, and if this is the expected output, help me understand how to wait for the thread pool to finish its jobs.

F:\Programming\C++\thread-pool>mkdir build 

F:\Programming\C++\thread-pool>cd build

F:\Programming\C++\thread-pool\build>cmake .. -G "MinGW Makefiles"
-- The C compiler identification is GNU 8.1.0
-- The CXX compiler identification is GNU 8.1.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/ProgramData/chocolatey/bin/gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/ProgramData/chocolatey/bin/g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: F:/Programming/C++/thread-pool/build

F:\Programming\C++\thread-pool\build>make
Scanning dependencies of target main
[ 50%] Building CXX object CMakeFiles/main.dir/example/main.cpp.obj
[100%] Linking CXX executable main.exe
[100%] Built target main

F:\Programming\C++\thread-pool\build>main

F:\Programming\C++\thread-pool\build>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant