akshettrj / watgbridge

A forwarder from WhatsApp to Telegram written in GoLang
MIT License
165 stars 40 forks source link

Linker warning when compiling #53

Open arlesontonnera opened 3 months ago

arlesontonnera commented 3 months ago

After running the go build command, the compilation stops with the following messages:

I appreciate any help.

github.com/Benau/go_rlottie

In file included from vector_stb_stb_image.cpp:14: vector_stb_stb_image.h: In function ‘int stbijpeg_info(stbi__context, int, int, int)’: vector_stb_stb_image.h:956:29: warning: value computed is not used [-Wunused-value] 956 | #define stbierrpuc(x,y) ((unsigned char *)(size_t) (stbi__err(x,y)?NULL:NULL)) | ~^~~~~~~~~~~~~ vector_stb_stb_image.h:3811:7: note: in expansion of macro ‘stbierrpuc’ 3811 | stbierrpuc("outofmem", "Out of memory"); | ^~~~

watgbridge

/usr/bin/ld: warning: /tmp/go-link-2201394933/000027.o: missing .note.GNU-stack section implies executable stack /usr/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker

akshettrj commented 3 months ago

The rlottie one is just warning

You can ignore that

The ldd one also looks like a warning. Is any binary file named watgbridge getting generated?

arlesontonnera commented 3 months ago

The rlottie one is just warning

You can ignore that

The ldd one also looks like a warning. Is any binary file named watgbridge getting generated?

I imagined. Yes, a binary named watgbridge was generated with approximately 35.4MB. I hope everything is ok. I take this opportunity to praise your incredible work. Health and peace to you. ;-)

akshettrj commented 3 months ago

Yeah, the bot should work then

You probably are running very old version of gcc or something.

Thank you for your kind words ☺️

arlesontonnera commented 3 months ago

Yeah, the bot should work then

You probably are running very old version of gcc or something.

Thank you for your kind words

gcc version 13.2.0 (GCC)

You are welcome! :-)

akshettrj commented 3 months ago

And what golang version ?

arlesontonnera commented 3 months ago

go version go1.21.8 linux/amd64