I have a question concerning igraph integrations. I am student at the university of Ljubljana and i am currently working on my diploma thesis. The topic is about integration of C++ implementation of algorithm SICS.
I have currently isuess with linking static library in R environment to test the package. I have installed the library through the command line, and now i want to link the actual program. For linker i am using following makevars script:
CXX = g++ CXX_FLAGS = -std=c++17 -O3 -march=native -DNDEBUG PKG_CPPFLAGS="-IC:\Sics\sics\include\igraph" PKG_LIBS="-LC:\Sics\sics\include\igraph\lib\libigraph.a" -lm -lstdc++ -lgomp -lpthread
When i run the program i would get the following message.
* installing to library 'C:/Users/MyName/Documents/R/win-library/4.1' * installing *source* package 'Sics' ... ** using staged installation ** libs /mingw64/bin/g++ -std=gnu++17 -shared -s -static-libgcc -o Sics.dll tmp.def Subgraph_isomorphism.o beam.o interface.o main.o -LC:\Sics\sics\include\igraph\lib\libigraph.a -lm -lstdc++ -lgomp -lpthread -LC:/PROGRA~1/R/R-41~1.0/bin/x64 -lR C:/RBUILD~1/4.0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: Subgraph_isomorphism.o:Subgraph_isomorphism.cpp:(.text+0x12b): undefined reference to `igraph_vector_init' collect2.exe: error: ld returned 1 exit status no DLL was created ERROR: compilation failed for package 'Sics' * removing 'C:/Users/MyName/Documents/R/win-library/4.1/Sics' * restoring previous 'C:/Users/MyName/Documents/R/win-library/4.1/Sics' Exited with status 1.
I would be really pleased if you could give me any advice. Actually i would be really happy if there’s anyone who would be ready to give me some help about how does actual package works. Thinks like that: how do you add your new function to the existing package et cetera.
The best way would be if i can personaly contact anyone who would be ready to help and meet him through the zoom meting.