I'm trying to link this external library which i have compiled using cmake which give me libfc.a
file. I tried to link this static library to my main.cpp
file but unable to access static library.
//main.cpp
int main()
{
fc::unsigned_int abi_sequence = 0;
}
I've tried:
g++ main.cpp libfc.a -o main.out
g++ main.cpp -L. -lfc -o main.out
I've tried other examples from other stackoverflow posts but i didn't help me at all.