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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

examples/modern.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// g++ -g -Wall -o modern $(python-config --includes --cflags) modern.cpp $(python-config --ldflags --embed)
2+
// g++ -g -Wall -o modern $(python-config --includes) modern.cpp $(python-config --ldflags --embed)
33
//
44

55
#define _USE_MATH_DEFINES

examples/nonblock.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// g++ -g -Wall -o nonblock $(python-config --includes --cflags) nonblock.cpp $(python-config --ldflags --embed)
2+
// g++ -g -Wall -o nonblock $(python-config --includes) nonblock.cpp $(python-config --ldflags --embed)
33
//
44

55
#define _USE_MATH_DEFINES

examples/quiver.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// g++ -g -Wall -o quiver $(python-config --includes --cflags) quiver.cpp $(python-config --ldflags --embed)
2+
// g++ -g -Wall -o quiver $(python-config --includes) quiver.cpp $(python-config --ldflags --embed)
33
//
44

55
#include "../matplotlibcpp.h"

examples/spy.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// g++ -g -Wall -o spy $(python-config --includes --cflags) spy.cpp $(python-config --ldflags --embed)
2+
// g++ -g -Wall -o spy $(python-config --includes) spy.cpp $(python-config --ldflags --embed)
33
//
44

55
#include "../matplotlibcpp.h"

examples/subplot2grid.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// g++ -g -Wall -o subplot2grid $(python-config --includes --cflags) subplot2grid.cpp $(python-config --ldflags --embed)
2+
// g++ -g -Wall -o subplot2grid $(python-config --includes) subplot2grid.cpp $(python-config --ldflags --embed)
33
//
44

55
#define _USE_MATH_DEFINES

examples/surface.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// g++ -g -Wall -o surface $(python-config --includes --cflags) surface.cpp $(python-config --ldflags --embed)
2+
// g++ -g -Wall -o surface $(python-config --includes) surface.cpp $(python-config --ldflags --embed)
33
//
44

55
#include "../matplotlibcpp.h"

examples/update.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// g++ -g -Wall -o update $(python-config --includes --cflags) update.cpp $(python-config --ldflags --embed)
2+
// g++ -g -Wall -o update $(python-config --includes) update.cpp $(python-config --ldflags --embed)
33
//
44

55
#define _USE_MATH_DEFINES

examples/xkcd.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// g++ -g -Wall -o xkcd $(python-config --includes --cflags) xkcd.cpp $(python-config --ldflags --embed)
2+
// g++ -g -Wall -o xkcd $(python-config --includes) xkcd.cpp $(python-config --ldflags --embed)
33
//
44

55
#define _USE_MATH_DEFINES

0 commit comments

Comments
 (0)