Code Examples
This section contains a list of code examples that can perform various simple tasks. In general, to compile the code it is only necessary to add a few files to your project:
FlashPro-M:
include FlashProM-Dll.h
on Windows link with FlashProM-FPAsel.lib or dynamically load FlashProM-FPAsel.dll
on Linux use this makefile to compile any .cpp file.
#"sudo dpkg -i <deb file from linux package>" to install multifpm CC := g++ LIBS_FP := -lmultifpm -lpthread -ldl -lusb-1.0 -ludev CPP_FILES := $(wildcard *.cpp) EXECS := $(notdir $(CPP_FILES:.cpp=)) EXECSFP := $(addsuffix fp, $(notdir $(CPP_FILES:.cpp=))) .PHONY: all clean all: $(EXECS) %: %.cpp $(CC) -o $@fp $< -DFLASHPROM -L. $(LIBS_FP) clean: rm -f $(EXECSFP) .PHONY: force force :;
GangPro-M:
include GangProM-Dll.h
on Windows link with GangProM-FPAsel.lib or dynamically load GangProM-FPAsel.dll
on Linux use this Makefile to compile any .cpp file.
#"sudo dpkg -i <deb file from linux package>" to install multigpm CC := g++ LIBS_GP := -lmultigpm -lpthread -ldl -lusb-1.0 -ludev CPP_FILES := $(wildcard *.cpp) EXECS := $(notdir $(CPP_FILES:.cpp=)) EXECSGP := $(addsuffix gp, $(notdir $(CPP_FILES:.cpp=))) .PHONY: all clean all: $(EXECS) %: %.cpp $(CC) -o $@gp $< -DGANGPROM -L. $(LIBS_GP) clean: rm -f $(EXECSGP) .PHONY: force force :;
Â
Â
Â
Â