[GH-ISSUE #77] undefined reference to workbook_new', workbook_close', etc. when compiling code #65

Closed
opened 2026-05-05 11:35:30 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @Z3ROQL on GitHub (Nov 15, 2016).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/77

Hello! I successfully built LibXlsxWriter.dll and put it inside a folder with Zlib.dll, all include files (xlsxwriter.h + xlsxwriter folder) and a source code (just a standard "Hello, world" code from your examples directory, nothing special). For some reason when I try to compile the code it gives me a lot of undefined reference to [...] errors, each of them for every function used. What could it be? Am I doing something wrong? Did I forget to put something in the folder?

Originally created by @Z3ROQL on GitHub (Nov 15, 2016). Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/77 Hello! I successfully built **LibXlsxWriter.dll** and put it inside a folder with **Zlib.dll**, all **include files** (_xlsxwriter.h_ + _xlsxwriter folder_) and a **source code** (just a standard "Hello, world" code from your examples directory, nothing special). For some reason when I try to compile the code it gives me a lot of `undefined reference to [...]` errors, each of them for every function used. What could it be? Am I doing something wrong? Did I forget to put something in the folder?
Author
Owner

@jmcnamara commented on GitHub (Nov 16, 2016):

Hi,

What compiler are you using?

If MSVC then try the following project and follow the instructions: https://github.com/jmcnamara/MSVCLibXlsxWriter

Then let me know if you have an issue.

John

<!-- gh-comment-id:260814242 --> @jmcnamara commented on GitHub (Nov 16, 2016): Hi, What compiler are you using? If MSVC then try the following project and follow the instructions: https://github.com/jmcnamara/MSVCLibXlsxWriter Then let me know if you have an issue. John
Author
Owner

@Z3ROQL commented on GitHub (Nov 16, 2016):

I'm using Dev-C++. I read everything but I'd like to know how to build a project without replacing my code in the ExampleExe solution. Is it possible (with Dev-C++, of course)?

<!-- gh-comment-id:261014212 --> @Z3ROQL commented on GitHub (Nov 16, 2016): I'm using Dev-C++. I read everything but I'd like to know how to build a project without replacing my code in the ExampleExe solution. Is it possible (with Dev-C++, of course)?
Author
Owner

@jmcnamara commented on GitHub (Nov 17, 2016):

The error that you see is just a linker or dynamic loader issue.

I had never heard of Dev-C++ but based on the webpage (http://www.bloodshed.net/dev/) it looks like it is an IDE with Mingw GCC as the compiler.

Libxlsxwriter work with Mingw and there are instructions in the docs: https://libxlsxwriter.github.io/getting_started.html#gsg_ming

Make sure that you link against libxlsxwriter and lz.

If you still can't get it working then it is probably best to ask in the Dev-C++ community or on StackOverflow.

<!-- gh-comment-id:261207398 --> @jmcnamara commented on GitHub (Nov 17, 2016): The error that you see is just a linker or dynamic loader issue. I had never heard of Dev-C++ but based on the webpage (http://www.bloodshed.net/dev/) it looks like it is an IDE with Mingw GCC as the compiler. Libxlsxwriter work with Mingw and there are instructions in the docs: https://libxlsxwriter.github.io/getting_started.html#gsg_ming Make sure that you link against libxlsxwriter and lz. If you still can't get it working then it is probably best to ask in the Dev-C++ community or on StackOverflow.
Author
Owner

@Z3ROQL commented on GitHub (Nov 17, 2016):

Oh, I see. Thank you for your time. I acknowledge that I did a stupid mistake and I could've avoided to ask this question but I'm still a newbie : /

<!-- gh-comment-id:261266015 --> @Z3ROQL commented on GitHub (Nov 17, 2016): Oh, I see. Thank you for your time. I acknowledge that I did a stupid mistake and I could've avoided to ask this question but I'm still a newbie : /
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/libxlsxwriter#65
No description provided.