mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 14:15:54 -06:00
[GH-ISSUE #77] undefined reference to workbook_new', workbook_close', etc. when compiling code #65
Labels
No labels
awaiting user feedback
bug
cmake
cmake
docs
feature request
in progress
long term
medium term
medium term
pull-request
question
question
ready to close
short term
under investigation
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/libxlsxwriter#65
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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?@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
@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)?
@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.
@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 : /