Skip to content

Commit 40fcebf

Browse files
authored
Retry to import Python.h add_definitions("-std=c99 -ggdb3 -O0 -pedantic-errors -Wall -Wextra -fpie $(python3-config --cflags --embed) -o 'createstructure.out' 'createstructure.c' $(python3-config --embed --ldflags) && ./createstructure.out")
1 parent dd28cfc commit 40fcebf

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

snap-bin/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ cmake_minimum_required(VERSION 3.1)
33
project(createstructure)
44

55
add_definitions("-DCMAKE_C_COMPILER=/usr/bin/gcc")
6+
add_definitions("-std=c99 -ggdb3 -O0 -pedantic-errors -Wall -Wextra -fpie $(python3-config --cflags --embed) -o 'createstructure.out' 'createstructure.c' $(python3-config --embed --ldflags) && ./createstructure.out")
67

78
add_executable(createstructure createstructure.c)
89
install(TARGETS createstructure RUNTIME DESTINATION bin)

snap-bin/createstructure.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
#include <stdbool.h>
44
#include <string.h>
55
#include <time.h>
6+
#include <Python.h>
7+
//gcc -std=c99 -ggdb3 -O0 -pedantic-errors -Wall -Wextra -fpie $(python3-config --cflags --embed) -o 'createstructure.out' 'createstructure.c' $(python3-config --embed --ldflags) && ./createstructure.out
68

79
// Definitions
810
#define MALLOC_MAX_SIXE 1024
@@ -421,13 +423,13 @@ void login()
421423
printf("%s\n", "Configuration saved");
422424

423425

424-
if (verbose)
425-
printf("%s\n", "Installing external packages");
426-
427426
#ifdef SNAP
428427
if (verbose)
429428
printf("%s\n", "Remeber to do : pip3 install createstructure==7.6");
430429
#else
430+
if (verbose)
431+
printf("%s\n", "Installing external packages");
432+
431433
system("pip3 -q install createstructure==7.6");
432434

433435
if (verbose)

0 commit comments

Comments
 (0)