Skip to content

Commit 29877fb

Browse files
committed
examples: remove --cflags from compilation command, as it conflicts with -g
1 parent 5b6cc66 commit 29877fb

18 files changed

+18
-18
lines changed

examples/animation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// g++ -g -Wall -o animation $(python-config --includes --cflags) animation.cpp $(python-config --ldflags --embed)
2+
// g++ -g -Wall -o animation $(python-config --includes) animation.cpp $(python-config --ldflags --embed)
33
//
44

55
#define _USE_MATH_DEFINES

examples/bar.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// g++ -g -Wall -o bar $(python-config --includes --cflags) bar.cpp $(python-config --ldflags --embed)
2+
// g++ -g -Wall -o bar $(python-config --includes) bar.cpp $(python-config --ldflags --embed)
33
//
44

55
#define _USE_MATH_DEFINES

examples/basic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// g++ -g -Wall -o basic -I/usr/include/python3.9 basic.cpp -lpython3.9
3-
// g++ -g -Wall -o basic $(python-config --includes --cflags) basic.cpp $(python-config --ldflags --embed)
3+
// g++ -g -Wall -o basic $(python-config --includes) basic.cpp $(python-config --ldflags --embed)
44
//
55

66
#define _USE_MATH_DEFINES

examples/colorbar.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// g++ -g -Wall -o colorbar $(python-config --includes --cflags) colorbar.cpp $(python-config --ldflags --embed)
2+
// g++ -g -Wall -o colorbar $(python-config --includes) colorbar.cpp $(python-config --ldflags --embed)
33
//
44

55
#define _USE_MATH_DEFINES

examples/contour.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// g++ -g -Wall -o contour $(python-config --includes --cflags) contour.cpp $(python-config --ldflags --embed)
2+
// g++ -g -Wall -o contour $(python-config --includes) contour.cpp $(python-config --ldflags --embed)
33
//
44

55
#include "../matplotlibcpp.h"

examples/fill.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// g++ -g -Wall -o fill $(python-config --includes --cflags) fill.cpp $(python-config --ldflags --embed)
2+
// g++ -g -Wall -o fill $(python-config --includes) fill.cpp $(python-config --ldflags --embed)
33
//
44

55
#define _USE_MATH_DEFINES

examples/fill_inbetween.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// g++ -g -Wall -o fill_inbetween $(python-config --includes --cflags) fill_inbetween.cpp $(python-config --ldflags --embed)
2+
// g++ -g -Wall -o fill_inbetween $(python-config --includes) fill_inbetween.cpp $(python-config --ldflags --embed)
33
//
44

55
#define _USE_MATH_DEFINES

examples/imshow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// g++ -g -Wall -o imshow $(python-config --includes --cflags) imshow.cpp $(python-config --ldflags --embed)
2+
// g++ -g -Wall -o imshow $(python-config --includes) imshow.cpp $(python-config --ldflags --embed)
33
//
44

55
#define _USE_MATH_DEFINES

examples/lines3d.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// g++ -g -Wall -o lines3d $(python-config --includes --cflags) lines3d.cpp $(python-config --ldflags --embed)
2+
// g++ -g -Wall -o lines3d $(python-config --includes) lines3d.cpp $(python-config --ldflags --embed)
33
//
44

55
#define _USE_MATH_DEFINES

examples/minimal.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// g++ -g -Wall -o minimal $(python-config --includes --cflags) minimal.cpp $(python-config --ldflags --embed)
2+
// g++ -g -Wall -o minimal $(python-config --includes) minimal.cpp $(python-config --ldflags --embed)
33
//
44
#include "../matplotlibcpp.h"
55

0 commit comments

Comments
 (0)