how read .xls file with cpp in linux ?, i found this library libxls but is for C , and found others but not free.
Asked
Active
Viewed 2,304 times
1
-
C is a subset of C++, so libxls should work in your C++ program. – ladaghini Jan 04 '12 at 12:46
-
but in c compile and in cpp not, i got [this](http://pastebin.com/2bLmG2si) – richie-torres Jan 04 '12 at 13:02
-
Related question http://stackoverflow.com/questions/583776/open-and-read-excel-from-a-linux-based-c-program – DumbCoder Jan 04 '12 at 13:04
-
1`c` isn't a subset of `c++`, but they're close. Compile with `g++` (which can compile `c` code too) and see if that works. – mange Jan 04 '12 at 13:09
-
`c` isn't a subset of `c++`, this is a big true. :) . i try with `g++` and got the same – richie-torres Jan 04 '12 at 13:12
-
i see the related questions, but i not found one solution, for read .xls and free on linux – richie-torres Jan 04 '12 at 13:43
3 Answers
1
i use libxls and made a mix with c and c++ code:
//my c++ code
extern "C" {
#include "xls.h"
}
...

richie-torres
- 746
- 1
- 8
- 29
0
I've found the Excel Format lib, which works on windows and linux. It's got some caveats but if you're looking for some basic functionalities that should get you going.

fduff
- 3,671
- 2
- 30
- 39
0
the file format is documented here if you would like to write your own parser for it

Stowelly
- 1,260
- 2
- 12
- 31
-
i cant view any info in this site :( , and your answer means no library exists ? or a more easy way that make own parser ? – richie-torres Jan 04 '12 at 14:00
-
hmm, might be temporarily down, that site is where i usually get all my file format docs from. and I have no idea about the existence of such a library, was just providing you with an alternative option if you cannot find one. – Stowelly Jan 04 '12 at 14:06