szechyjs / dsd

Digital Speech Decoder
Other
680 stars 267 forks source link

Multiple definitions of exitflag #104

Closed N0YKG closed 2 years ago

N0YKG commented 3 years ago

Compiling dsd with GCC 10 results in a multiply defined symbol error, due to exitflag being defined as not-external in the header. The following change will correct this and allow it to link: diff --git a/include/dsd.h b/include/dsd.h index 22ef3e9..353b8de 100644 --- a/include/dsd.h +++ b/include/dsd.h @@ -61,7 +61,7 @@ /*

provector commented 3 years ago

Oh thank you some much man! I couldn't compile it on Ubuntu 20.04 or the newest Kali (two separate laptops). Manually adding those changes worked like a charm :)

+1 for PR approval! :)

Thanks Again

szechyjs commented 3 years ago

PRs welcomed

Yinette commented 3 years ago

Just made a PR :)

marabut0 commented 3 years ago

Hi, is there a chance that some pro user will explain step by step which file has to be modified and how, for a mechanic that just started migrating from msw to linux and in addition exploring the interesting world of SDR? pretty plz :)

N0YKG commented 3 years ago

It's pretty much there in my first mail. In file include/dsd.h, change int exitflag; to extern int exitflag;

in file src/dsd_main.c b/src/dsd_main.c, add int exitflag = 0; after all the headers.

marabut0 commented 3 years ago

thank you very much. I guess there is to much everything in the first post. with your help all build as should :). the next issue is the bitrate. my laptop sound chip has 44100 what nuke whole project pairing rtl-sdr and dsd. pity but cannot jump over this issue


or else ?? looks like dsd started ! :) . tomorrow wil try to pipe something in to it from local digital repeater :) thank you again :+1: