I have a hunch that I’m missing something basic here (I have not used dwrite before). I have ensured that the correct #defines are set with regard to my compiler, (for example, the freetype option and sources are ommitted). libopennurbs_public.a(opennurbs_glyph_outline.o): in function `ON_FontGlyph::GetOutline(bool, ON_Outline&) const':Ĭ:\DEV\NSX_3\openNURBS\openNURBS-7.x/opennurbs_glyph_outline.cpp:2973: undefined reference to `ON_WindowsDWriteGetGlyphOutline(ON_FontGlyph const*, ON_OutlineFigure::Type, ON_Outline&)'Ĭollect2.exe: error: ld returned 1 exit status libopennurbs_public.a(opennurbs_font.o): in function `ON_ManagedFonts::GetFontMetricsInFontDesignUnits(ON_Font const*, ON_FontMetrics&)':Ĭ:\DEV\NSX_3\openNURBS\openNURBS-7.x/opennurbs_font.cpp:11975: undefined reference to `ON_WindowsDWriteGetFontMetrics(ON_Font const*, ON_FontMetrics&)'Ĭ:/dev/jcb/bin/./lib/gcc/x86_64-w64-mingw32/9.2.0/././././x86_64-w64-mingw32/bin/ld.exe. libopennurbs_public.a(opennurbs_font.o): in function `ON_ManagedFonts::GetGlyphMetricsInFontDesignUnits(ON_Font const*, unsigned int, ON_TextBox&)':Ĭ:\DEV\NSX_3\openNURBS\openNURBS-7.x/opennurbs_font.cpp:11927: undefined reference to `ON_WindowsDWriteGetGlyphMetrics(ON_FontGlyph const*, ON_TextBox&)'Ĭ:/dev/jcb/bin/./lib/gcc/x86_64-w64-mingw32/9.2.0/././././x86_64-w64-mingw32/bin/ld.exe.
#Compile with mingw how to#
bin folder is in PATH premake (5.0.0 alpha 16) resides in E:premake and its also in PATH Ive done the following: Downloaded the current source code (https://gith. Windows 10 MinGW GCC Compile a program to DLL I would like to use this article HOWTO Create and Deploy a Sample DLL using MinGW MinGW but its not clear for instance how to create DLL from C source using GCC instead of G++ that I will use in other languages programs on Windows. libopennurbs_public.a(opennurbs_font.o): in function `ON_Font::ON_Font(ON_Font::FontType, ON_WindowsDWriteFontInformation const&)':Ĭ:\DEV\NSX_3\openNURBS\openNURBS-7.x/opennurbs_font.cpp:8823: undefined reference to `ON_Font::FontStretchFromDWriteStretch(unsigned int, ON_Font::Stretch)'Ĭ:/dev/jcb/bin/./lib/gcc/x86_64-w64-mingw32/9.2.0/././././x86_64-w64-mingw32/bin/ld.exe. Hi, MinGW (8.1.0 x8664 posix seh) resides in E:MinGW圆4 and its. libopennurbs_public.a(opennurbs_font.o): in function `ON_ManagedFonts::Internal_GetWindowsInstalledFonts(ON_SimpleArray&)':Ĭ:\DEV\NSX_3\openNURBS\openNURBS-7.x/opennurbs_font.cpp:1566: undefined reference to `ON_Font::GetInstalledWindowsDWriteFonts(wchar_t const*, bool, bool, ON_SimpleArray&)'Ĭ:/dev/jcb/bin/./lib/gcc/x86_64-w64-mingw32/9.2.0/././././x86_64-w64-mingw32/bin/ld.exe. lopennurbs_public -lfltk -lfltk_forms -lfltk_images -lfltk_cairo -lfltk_jpeg -lpng12 -lz -lglu32 -lopengl32 -lmingwex -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32 -lcomctl32 -lwsock32 -lwinmm -lshlwapi -ldwrite -lrpcrt4 -lpthread -lm -o example_read/example_readĬ:/dev/jcb/bin/./lib/gcc/x86_64-w64-mingw32/9.2.0/././././x86_64-w64-mingw32/bin/ld.exe. Output at the link stage is: C:/DEV/JCB/bin/g++ example_read/example_read.o example_userdata/example_ud.o -L. I am hoping that an OpenNURBS developer might have a suggestion for a fix. I have checked that opennurbs_font.o is compiled and linked into the library attempts at changing the link order of the libs did not resolve the issue. Specifically, I get the following undefined references: ON_Font::GetInstalledWindowsDWriteFonts
![compile with mingw compile with mingw](https://img.wonderhowto.com/img/00/51/63638391700101/0/use-mingw-compile-windows-exploits-kali-linux.w1456.jpg)
![compile with mingw compile with mingw](https://azrael.digipen.edu/~mmead/www/public/mingw/mingw64-install-1.png)
The library is built successfully, however, a link error is encountered when trying to build “example_read”. I have made several tweaks to the sources and makefiles so as to compile OpenNURBS with the Nuwen mingw compiler (64 bit Windows 10).
#Compile with mingw registration#
If you have any problems with the registration process or your account login, please contact us.First, many thanks for making openNURBS available.
#Compile with mingw free#
Registration is fast, simple and absolutely free so please, join our community today! By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. If you are looking for information about Qt related issue - register and post your question. Over 90 percent of questions asked here gets answered. Qt Centre is a community site devoted to programming in C++ using the Qt framework.
![compile with mingw compile with mingw](https://content.instructables.com/ORIG/FVW/C2VS/J1V7VNPB/FVWC2VSJ1V7VNPB.png)
Select the forum that you want to visit from the selection below. Before you can post: click the register link above to proceed.