Added include for math

This commit is contained in:
sam-astro 2022-01-15 22:00:14 -05:00
parent ba96d28063
commit 6800ed6284
3 changed files with 6 additions and 2 deletions

View File

@ -20,7 +20,9 @@ SET(programName Slang)
# either the variable values from package like ${PCL_INCLUDE_DIRS} or absolute paths as shown in second and third line may be used.
#include_directories(${PCL_INCLUDE_DIRS})
find_package(SDL2 REQUIRED)
include_directories(${SDL2_INCLUDE_DIRS})
find_package(SDL_IMAGE REQUIRED)
find_package(SDL_TTF REQUIRED)
include_directories(${SDL2_INCLUDE_DIRS} ${SDLIMAGE_INCLUDE_DIRS} ${SDLTTF_INCLUDE_DIRS})
include_directories("D:/Code/SDL2_ttf-2.0.15/include")
include_directories("D:/Code/SDL2-2.0.18/include")
include_directories("D:/Code/SDL2_image-2.0.5/include")
@ -56,7 +58,7 @@ include_directories(${Boost_INCLUDE_DIRS})
# All cpp fles will be clubbed into source folder and all .h files will be added to header files folder of the project.
add_executable (Slang Main.cpp main.h anyops.h builtin.h strops.cpp strops.h eval.cpp eval.h graphics.h SLB.h)
target_link_libraries(Slang m SDL2.lib SDL2main.lib SDL2_ttf.lib SDL2_image.lib ${Boost_LIBRARIES} ${SDL2_LIBRARIES})
target_link_libraries(Slang m SDL2.lib SDL2main.lib SDL2_ttf.lib SDL2_image.lib ${Boost_LIBRARIES} ${SDL2_LIBRARIES} ${SDL2TTF_LIBRARIES})
# target_link_libraries (Slang SDL2.lib SDL2main.lib SDL2_ttf.lib SDL2_image.lib ${SDL2_LIBRARIES})
# # Add the required libraries for linking:

View File

@ -14,6 +14,7 @@
#include <boost/any.hpp>
#include <SDL.h>
#include <ctime>
#include <math.h>
#define DEVELOPER_MESSAGES false

View File

@ -7,6 +7,7 @@
#include <stack>
#include "eval.h"
#include "strops.h"
#include <math.h>
// #include "builtin.h"
using namespace std;