Skip to content

static struct to avoid collision in global varibles.#1

Open
BillKek wants to merge 1 commit intogokernel2017:masterfrom
BillKek:master
Open

static struct to avoid collision in global varibles.#1
BillKek wants to merge 1 commit intogokernel2017:masterfrom
BillKek:master

Conversation

@BillKek
Copy link

@BillKek BillKek commented Jan 18, 2021

without it command :
gcc dream.c -o dream libapp.a -lSDL -Wall -O2

get error :
C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/10.2.0/../../../../i686-w64-mi
ngw32/bin/ld.exe: libapp.a(o_console.o):o_console.c:(.bss+0x0): multiple definit
ion of `r'; libapp.a(o_edit.o):o_edit.c:(.bss+0x0): first defined here
collect2.exe: error: ld returned 1 exit status

without it command :
gcc dream.c -o dream libapp.a -lSDL -Wall -O2

get error :
C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/10.2.0/../../../../i686-w64-mi
ngw32/bin/ld.exe: libapp.a(o_console.o):o_console.c:(.bss+0x0): multiple definit
ion of `r'; libapp.a(o_edit.o):o_edit.c:(.bss+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant