andlabs / libui

Simple and portable (but not inflexible) GUI library in C that uses the native GUI technologies of each platform it supports.
Other
10.72k stars 614 forks source link

Timer example doesn't compile #526

Open thevbw opened 3 years ago

thevbw commented 3 years ago

I have no idea what is going on, none of the UI libraries seem to work. I'm stumped, hopefully it's a simple mistake somewhere. Compiling with GCC on cygwin

/tmp/ccWpqqQP.o:main.c:(.text+0x3c): undefined reference touiMultilineEntryAppend' /tmp/ccWpqqQP.o:main.c:(.text+0x3c): relocation truncated to fit: R_X86_64_PC32 against undefined symbol uiMultilineEntryAppend' /tmp/ccWpqqQP.o:main.c:(.text+0x5c): undefined reference touiQuit' /tmp/ccWpqqQP.o:main.c:(.text+0x5c): relocation truncated to fit: R_X86_64_PC32 against undefined symbol uiQuit' /tmp/ccWpqqQP.o:main.c:(.text+0x90): undefined reference touiMultilineEntryAppend' /tmp/ccWpqqQP.o:main.c:(.text+0x90): relocation truncated to fit: R_X86_64_PC32 against undefined symbol uiMultilineEntryAppend' /tmp/ccWpqqQP.o:main.c:(.text+0xc7): undefined reference touiInit' /tmp/ccWpqqQP.o:main.c:(.text+0xc7): relocation truncated to fit: R_X86_64_PC32 against undefined symbol uiInit' /tmp/ccWpqqQP.o:main.c:(.text+0xee): undefined reference touiNewWindow' /tmp/ccWpqqQP.o:main.c:(.text+0xee): relocation truncated to fit: R_X86_64_PC32 against undefined symbol uiNewWindow' /tmp/ccWpqqQP.o:main.c:(.text+0x103): undefined reference touiWindowSetMargined' /tmp/ccWpqqQP.o:main.c:(.text+0x103): relocation truncated to fit: R_X86_64_PC32 against undefined symbol uiWindowSetMargined' /tmp/ccWpqqQP.o:main.c:(.text+0x108): undefined reference touiNewVerticalBox' /tmp/ccWpqqQP.o:main.c:(.text+0x108): relocation truncated to fit: R_X86_64_PC32 against undefined symbol uiNewVerticalBox' /tmp/ccWpqqQP.o:main.c:(.text+0x11d): undefined reference touiBoxSetPadded' /tmp/ccWpqqQP.o:main.c:(.text+0x11d): relocation truncated to fit: R_X86_64_PC32 against undefined symbol uiBoxSetPadded' /tmp/ccWpqqQP.o:main.c:(.text+0x12d): undefined reference touiWindowSetChild' /tmp/ccWpqqQP.o:main.c:(.text+0x12d): relocation truncated to fit: R_X86_64_PC32 against undefined symbol uiWindowSetChild' /tmp/ccWpqqQP.o:main.c:(.text+0x132): undefined reference touiNewMultilineEntry' /tmp/ccWpqqQP.o:main.c:(.text+0x132): relocation truncated to fit: R_X86_64_PC32 against undefined symbol uiNewMultilineEntry' /tmp/ccWpqqQP.o:main.c:(.text+0x156): undefined reference touiMultilineEntrySetReadOnly' /tmp/ccWpqqQP.o:main.c:(.text+0x156): additional relocation overflows omitted from the output /tmp/ccWpqqQP.o:main.c:(.text+0x162): undefined reference to uiNewButton' /tmp/ccWpqqQP.o:main.c:(.text+0x17f): undefined reference touiButtonOnClicked' /tmp/ccWpqqQP.o:main.c:(.text+0x195): undefined reference to uiBoxAppend' /tmp/ccWpqqQP.o:main.c:(.text+0x1b1): undefined reference touiBoxAppend' /tmp/ccWpqqQP.o:main.c:(.text+0x1c8): undefined reference to uiTimer' /tmp/ccWpqqQP.o:main.c:(.text+0x1e1): undefined reference touiWindowOnClosing' /tmp/ccWpqqQP.o:main.c:(.text+0x1ed): undefined reference to uiControlShow' /tmp/ccWpqqQP.o:main.c:(.text+0x1f2): undefined reference touiMain' collect2: error: ld returned 1 exit status `

code2828 commented 3 years ago

Use ``` instead.

test`
tset'
test"
test``
test''
test""
test```

As you see there will be no formatting problems