User forums > General (but related to Code::Blocks)
Code::Blocks and Raspberry Pi 4
dbrdh:
Hi all,
Have just bought a RP4 and installed C::B.
All OK but in trying out just to create a simple 'Hello World' GTK app. Sorted libraries for the compiler but I find the build fails due to:
‘gtk_button_new_from_stock’ is deprecated in the 'main.c' file: Use 'gtk_button_new_with_label' instead [-Wdeprecated-declarations]'
Wasn't expecting an IDE basic app build to fail out of the box but accept this maybe a Noob issue - where is the proper place to get an answer to this as I appreciate the "Read This' post and this may not be the correct forum to ask about this.
Thanks
stahta01:
Do you know the difference between error and warning?
Where is Code::Blocks installed? Edit2: On RP4 or other computer
What version is Code::Blocks?
What compiler are you using?
What is the Compiler version?
Edit: Add link on reporting issue
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F
Tim S.
oBFusCATed:
@dbrdh: If you're running a night build or recent svn version it is best to log this issue in the sf.net tickets section, so it is not forgotten. This is a problem with the GTK project template. What version of gtk+ are you using?
dbrdh:
Thanks for the reply...
--- Quote from: stahta01 on January 01, 2020, 09:26:06 pm ---Do you know the difference between error and warning?
--- End quote ---
yep. Now you've reminded me! :-)
--- Quote from: stahta01 on January 01, 2020, 09:26:06 pm ---Where is Code::Blocks installed? Edit2: On RP4 or other computer
What version is Code::Blocks?
What compiler are you using?
What is the Compiler version?
--- End quote ---
C::B is on the Pi v17.12
GCC v.8.3.0.
--- Quote from: stahta01 on January 01, 2020, 09:26:06 pm ---Edit: Add link on reporting issue
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F
--- End quote ---
Thanks for this. I'm new to programming in Linux and new to the Pi - I have done a fair bit of Basic, VB, C and C++ but a long time ago - that helped with sorting the missing libraries. Maybe I'm being a real Noob but I was expecting, perhaps naively, just to compile and run a simple GUI 'Hello world' app without too much [any?] input. However, when this new to a platform/app/environment, it's difficult to know what are noob issues and what is a genuine issue! 8-)
Still reading up - a lot! 8-)
Sorted my initial issue and am ignoring the warnings. Having sorted out missing libraries, now have new errors relating to undefined references. I know what these are but they seem extensive and relate to the window construction/size/position so perhaps I'll post using info from link you supplied.
Thanks again,
Dave
dbrdh:
Thanks for the reply...
--- Quote from: oBFusCATed on January 02, 2020, 11:08:14 am ---@dbrdh: If you're running a night build or recent svn version it is best to log this issue in the sf.net tickets section, so it is not forgotten. This is a problem with the GTK project template. What version of gtk+ are you using?
--- End quote ---
Noted.
GTK+ 3.0 version: 3.24.5-1+rpt2 armhf
Sorted the initial issue but as you may have seen in my other reply, I now have 'undefined reference' errors relating to GUI window construction. This seems to fit with what you say about a template issue. Its tripping up on things like undefined border setting and window position.
Is the section you referenced above the right place for this?
Cheers,
Dave
Navigation
[0] Message Index
[#] Next page
Go to full version