Skip to content

Commit 43bac59

Browse files
Add C++ iostream logging to VS Code terminal window
1 parent 595c093 commit 43bac59

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ ifeq ($(OS), Windows_NT)
2424
# Set Windows macros
2525
platform := Windows
2626
CXX ?= g++
27-
linkFlags += -Wl,--allow-multiple-definition -pthread -lopengl32 -lgdi32 -lwinmm -mwindows -static -static-libgcc -static-libstdc++
27+
linkFlags += -Wl,--allow-multiple-definition -pthread -lopengl32 -lgdi32 -lwinmm -static -static-libgcc -static-libstdc++
2828
THEN := &&
2929
PATHSEP := \$(BLANK)
3030
MKDIR := -mkdir -p

src/main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include <raylib-cpp.hpp>
2+
#include <iostream>
23

34
int main() {
45

@@ -11,6 +12,9 @@ int main() {
1112

1213
SetTargetFPS(60);
1314

15+
// Demostrate logging
16+
std::cout << "Hello World!" << std::endl;
17+
1418
// Main game loop
1519
while (!w.ShouldClose()) // Detect window close button or ESC key
1620
{

0 commit comments

Comments
 (0)