I am trying to build eel2 on GNU/Linux, with GFX by default, but I am getting the following error:
g++ -o loose_eel loose_eel.o nseel-caltab.o nseel-compiler.o nseel-eval.o nseel-lextab.o nseel-ram.o nseel-yylex.o nseel-cfunc.o fft.o asm-nseel-x64-sse.o lice.o lice_image.o lice_line.o lice_ico.o lice_bmp.o lice_textnew.o lice_text.o lice_arc.o -g -DWDL_FFT_REALSIZE=8 -Wall -Wno-unused-function -Wno-multichar -Wno-unused-result -Wshadow -Wtype-limits -DNDEBUG -O -D_FILE_OFFSET_BITS=64 -Werror -Wno-deprecated-declarations -DNSEEL_LOOPFUNC_SUPPORT_MAXLEN=0 -DEEL_LICE_WANT_STANDALONE -DSWELL_LICE_GDI -DSWELL_EXTRA_MINIMAL -DSWELL_TARGET_GDK=3 -DSWELL_FREETYPE -std=c++03 -lSwell -ldl -lGL
ld: warning: asm-nseel-x64-sse.o: missing .note.GNU-stack section implies executable stack
ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
ld: lice.o: in function `LICE_SysBitmap::~LICE_SysBitmap()':
lice.cpp:(.text+0x1659): undefined reference to `SWELL_DeleteGfxContext(HDC__*)'
ld: lice.o: in function `LICE_SysBitmap::__resize(int, int)':
lice.cpp:(.text+0x177d): undefined reference to `SWELL_GetCtxFrameBuffer(HDC__*)'
ld: lice.cpp:(.text+0x17f0): undefined reference to `SWELL_DeleteGfxContext(HDC__*)'
ld: lice.cpp:(.text+0x182d): undefined reference to `SWELL_CreateMemContext(HDC__*, int, int)'
ld: lice.cpp:(.text+0x1879): undefined reference to `SWELL_GetCtxFrameBuffer(HDC__*)'
ld: lice_ico.o: in function `icoToBitmap(HGDIOBJ__*, LICE_IBitmap*)':
lice_ico.cpp:(.text+0x58d): undefined reference to `GetObject(HGDIOBJ__*, int, void*)'
ld: lice_ico.cpp:(.text+0x666): undefined reference to `DrawImageInRect(HDC__*, HGDIOBJ__*, RECT const*)'
ld: lice_ico.cpp:(.text+0x700): undefined reference to `DrawImageInRect(HDC__*, HGDIOBJ__*, RECT const*)'
ld: lice_ico.o: in function `LICE_LoadIcon(char const*, int, LICE_IBitmap*)':
lice_ico.cpp:(.text+0x9d2): undefined reference to `LoadNamedImage(char const*, bool)'
ld: lice_ico.cpp:(.text+0xa07): undefined reference to `DeleteObject(HGDIOBJ__*)'
ld: lice_bmp.o: in function `hbmToBit(HGDIOBJ__*, LICE_IBitmap*)':
lice_bmp.cpp:(.text+0x56f): undefined reference to `GetObject(HGDIOBJ__*, int, void*)'
ld: lice_bmp.cpp:(.text+0x5d5): undefined reference to `DrawImageInRect(HDC__*, HGDIOBJ__*, RECT const*)'
ld: lice_bmp.o: in function `LICE_LoadBMP(char const*, LICE_IBitmap*)':
lice_bmp.cpp:(.text+0x76a): undefined reference to `LoadNamedImage(char const*, bool)'
ld: lice_bmp.cpp:(.text+0x79f): undefined reference to `DeleteObject(HGDIOBJ__*)'
ld: lice_textnew.o: in function `LICE_CachedFont::~LICE_CachedFont()':
lice_textnew.cpp:(.text+0xb77): undefined reference to `DeleteObject(HGDIOBJ__*)'
ld: lice_textnew.o: in function `LICE_CachedFont::SetFromHFont(HGDIOBJ__*, int)':
lice_textnew.cpp:(.text+0xc9c): undefined reference to `DeleteObject(HGDIOBJ__*)'
ld: lice_textnew.cpp:(.text+0xdbc): undefined reference to `SetTextColor(HDC__*, int)'
ld: lice_textnew.cpp:(.text+0xde6): undefined reference to `SetBkMode(HDC__*, int)'
ld: lice_textnew.cpp:(.text+0xe10): undefined reference to `SetBkColor(HDC__*, int)'
ld: lice_textnew.cpp:(.text+0xe4e): undefined reference to `SelectObject(HDC__*, HGDIOBJ__*)'
ld: lice_textnew.cpp:(.text+0xe81): undefined reference to `GetTextMetrics(HDC__*, TEXTMETRIC*)'
ld: lice_textnew.cpp:(.text+0xeb7): undefined reference to `SelectObject(HDC__*, HGDIOBJ__*)'
ld: lice_textnew.o: in function `LICE_CachedFont::RenderGlyph(unsigned int)':
lice_textnew.cpp:(.text+0x11ca): undefined reference to `SetTextColor(HDC__*, int)'
ld: lice_textnew.cpp:(.text+0x11f4): undefined reference to `SetBkMode(HDC__*, int)'
ld: lice_textnew.cpp:(.text+0x121e): undefined reference to `SetBkColor(HDC__*, int)'
ld: lice_textnew.cpp:(.text+0x126f): undefined reference to `SelectObject(HDC__*, HGDIOBJ__*)'
ld: lice_textnew.cpp:(.text+0x13c2): undefined reference to `SWELL_DrawText(HDC__*, char const*, int, RECT*, int)'
ld: lice_textnew.cpp:(.text+0x1483): undefined reference to `SWELL_DrawText(HDC__*, char const*, int, RECT*, int)'
ld: lice_textnew.cpp:(.text+0x159e): undefined reference to `SelectObject(HDC__*, HGDIOBJ__*)'
ld: lice_textnew.o: in function `LICE_CachedFont::DrawTextImpl(LICE_IBitmap*, char const*, int, RECT*, unsigned int)':
lice_textnew.cpp:(.text+0x3542): undefined reference to `SelectObject(HDC__*, HGDIOBJ__*)'
ld: lice_textnew.cpp:(.text+0x358f): undefined reference to `SWELL_DrawText(HDC__*, char const*, int, RECT*, int)'
ld: lice_textnew.cpp:(.text+0x392a): undefined reference to `SelectObject(HDC__*, HGDIOBJ__*)'
ld: lice_textnew.cpp:(.text+0x39a1): undefined reference to `SelectObject(HDC__*, HGDIOBJ__*)'
ld: lice_textnew.cpp:(.text+0x3a27): undefined reference to `SelectObject(HDC__*, HGDIOBJ__*)'
ld: lice_textnew.cpp:(.text+0x3a8e): undefined reference to `SetTextColor(HDC__*, int)'
ld: lice_textnew.cpp:(.text+0x3aa6): undefined reference to `SetBkMode(HDC__*, int)'
ld: lice_textnew.cpp:(.text+0x3afc): undefined reference to `SetBkColor(HDC__*, int)'
ld: lice_textnew.cpp:(.text+0x3b0e): undefined reference to `SWELL_PushClipRegion(HDC__*)'
ld: lice_textnew.cpp:(.text+0x3b24): undefined reference to `SWELL_SetClipRegion(HDC__*, RECT const*)'
ld: lice_textnew.cpp:(.text+0x3ba2): undefined reference to `SWELL_DrawText(HDC__*, char const*, int, RECT*, int)'
ld: lice_textnew.cpp:(.text+0x3bb7): undefined reference to `SWELL_PopClipRegion(HDC__*)'
ld: lice_textnew.cpp:(.text+0x3c7c): undefined reference to `SelectObject(HDC__*, HGDIOBJ__*)'
collect2: error: ld returned 1 exit status
make: *** [Makefile:159: loose_eel] Error 1
I am trying to build eel2 on GNU/Linux, with GFX by default, but I am getting the following error:
Whereas, with
make NO_GFX=1, it builds.