File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ cmake_minimum_required(VERSION 3.1)
33project (createstructure)
44
55add_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
78add_executable (createstructure createstructure.c )
89install (TARGETS createstructure RUNTIME DESTINATION bin)
Original file line number Diff line number Diff line change 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 )
You can’t perform that action at this time.
0 commit comments