Erix Liechstenstein
Erix Liechstenstein

Reputation: 41

Trouble using the XLNT excel library

I am writing code which requires reading stuff from xls files and I settled on using the XLNT library.

I did the following:

The errors I have are:

C:\Users\pinkunicorn\Documents\Personal Files\C\testing\main.cpp|36|undefined reference to xlnt::worksheet::freeze_panes(xlnt::cell_reference const&)'

I looked around on forums what some people are saying about similar problems is to include the .cpp files as well. I don't understand how to do it so I haven't tried it yet (all instructions seem to say to add .cpp library file name to the command line when compiling) - but I am not even using the command line to compile and there are like 50 cpp files in the source folder of the library download file so not sure how that would work.

What do you think possible fixes could be?

Upvotes: 0

Views: 1823

Answers (2)

Li Kui
Li Kui

Reputation: 680

The XLNT didn't suport "xls" file right now,just suport "xlsx".

Upvotes: 1

user8460585
user8460585

Reputation: 1

I sometimes use g++ myfile.cpp -std=c++14 -Ixlnt/include -Lxlnt/lib -lxlnt -o myfile

I believe that the order of the above is important (using the right arguments in the wrong order has tripped me up before).

Upvotes: 0

Related Questions