Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Things defined in main.c also defined in init_config.c #133

Open
Starconstructor opened this issue Feb 24, 2022 · 3 comments
Open

Things defined in main.c also defined in init_config.c #133

Starconstructor opened this issue Feb 24, 2022 · 3 comments

Comments

@Starconstructor
Copy link

After I invoke make, this is printed out:

gcc -c -o build/init_config.o src/init_config.c -std=gnu11 -Isrc -Iutils pkg-config --cflags libcurlgcc -o build/virtual_assistant build/main.o build/init_config.o -std=gnu11 -Isrc -Iutilspkg-config --cflags libcurl-lssl -lcrypto -ljson-cpkg-config --libs libcurl/usr/bin/ld: build/init_config.o:(.bss+0x0): multiple definition ofstr'; build/main.o:(.bss+0x11bc0): first defined here
/usr/bin/ld: build/init_config.o:(.bss+0x3e8): multiple definition of start'; build/main.o:(.bss+0x11fa8): first defined here /usr/bin/ld: build/init_config.o:(.bss+0x3f0): multiple definition of pv'; build/main.o:(.bss+0x11fb0): first defined here
/usr/bin/ld: build/init_config.o:(.bss+0x400): multiple definition of location'; build/main.o:(.bss+0x11fc0): first defined here /usr/bin/ld: build/init_config.o:(.bss+0x800): multiple definition of youtube'; build/main.o:(.bss+0x123c0): first defined here
/usr/bin/ld: build/init_config.o:(.bss+0xc00): multiple definition of songs'; build/main.o:(.bss+0x127c0): first defined here /usr/bin/ld: build/init_config.o:(.bss+0x1000): multiple definition of cal'; build/main.o:(.bss+0x12bc0): first defined here
/usr/bin/ld: build/init_config.o:(.bss+0x1080): multiple definition of search'; build/main.o:(.bss+0x12c40): first defined here /usr/bin/ld: build/init_config.o:(.bss+0x1100): multiple definition of HOMEDIR'; build/main.o:(.bss+0x12cc0): first defined here
/usr/bin/ld: build/init_config.o:(.bss+0x1500): multiple definition of WebBrowser'; build/main.o:(.bss+0x130c0): first defined here /usr/bin/ld: build/init_config.o:(.bss+0x1900): multiple definition of MediaPlayer'; build/main.o:(.bss+0x134c0): first defined here
collect2: error: ld returned 1 exit status
make: *** [Makefile:18: build/virtual_assistant] Error`

@ritwik12
Copy link
Owner

@Starconstructor Yes, there could be. Want to take this issue up?

@Starconstructor
Copy link
Author

Sure. I'll do some sifting.

@Starconstructor
Copy link
Author

This issue in particular has been fixed, but before I make a branch and do a pull request, I need to fix some other problems. Should I file new issues for these or just discuss them within this one?

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

No branches or pull requests

2 participants