Recent Posts

Pages: 1 2 3 [4] 5 6 7 8 9 10
31
Help / Re: Libcurl permission denied
« Last post by stahta01 on July 12, 2024, 07:42:25 pm »
Files under "C:\Users\kylem" is owned by kylem not by administrator.

You need to use web search tools to find out how edit the folder permissions.

NOTE: Running as administrator can cause weird problems under Linux.

Edit2: I would stop running Code::Blocks as Administrator; and give ownership and right to  "C:\Users\kylem" and sub-folders back to kylem most likely you have some things owned by one or the other and this is the cause of the problem.

Tim S.

32
Help / Libcurl permission denied
« Last post by algo_trader_newb on July 12, 2024, 06:49:13 pm »
Im new to Code::Blocks but have been using it for sometime learning through learncpp.com. Wonderful website.

Ive decided now that i want to create a project scrapping data from kitco and updating the price of gold every 30 seconds. I am using

#include <curl/curl.h>
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include <thread>
#include <chrono>
#include <Python.h>
#include "matplotlibcpp.h"


Here is my problem... I keep getting denied permission to access curl library.

Things i have done to solve issue --

1. turned off windows defender firewall for private and public networks
2. checked both libcurl and sfml properies to make sure i have full control
3. ensured i have proper executables inside my toolchain executables
4. updated my Settings -> compiler -> linker settings -> link libraries
to make sure i have all proper folders and files needed to execute
5. updated my Settings -> compiler -> Search directories
to make sure i have all proper folders and files, includes needed to execute
6. updated my Project -> build options -> linker settings -> link libraries
to make sure i have all proper folders and files needed to execute 
7. updated my Project -> build options -> Search directories
to make sure i have all proper folders and files, includes  needed to execute 
8. ensured my enviroment variables -> system variables
include all proper paths to curl library folders of
bin, lib and include
9. ran code block properties to set to always run as administrator

and yet i keep getting permission denied. Can anyone tell me why or how i can go about solving this issue? Help is greatly appreciated. Thanks everyone and happy coding on CodeBlocks!  ;D

ld.exe||cannot find C:\Users\kylem\Desktop\C++_Project_Libraries_Downloads\curl-8.8.0_3-win64-mingw\lib: Permission denied|

33
Nightly builds / Re: The 05 July 2024 build (13536) is out.
« Last post by Uriens The Gray on July 11, 2024, 07:05:07 pm »
Works fine from the MSYS2 packages. Thanks.
BtW: Using win10
34
I just registered yesterday and had the same problem.
The registration asks for next year but 2025 is not accepted.
When I tried 2024 it was accepted 😅
35
Help / Re: How do I install Code:Blocks,Wxwidgets and wxSmith on Linux Mint?
« Last post by david on July 10, 2024, 03:19:59 pm »
You are right, I will adjust the install command.
36
You must update CB, if Mint does not allow so you must use a nightly or compile the source.
37
General (but related to Code::Blocks) / Re: WxSmith generate wrong code with sizer
« Last post by hermit on July 10, 2024, 10:21:48 am »
Hi,
I was using wxWidgets 3.2.4
Could you please help me out what am i doing wrong?

i build the wxwidgets from the source but i couldnt find 3.2.5.

after your suggestion i tried again to install wxWidgets as per the instructions but i could find only wxwidgets 3.2.4.
I used this link:-
Code
https://docs.codelite.org/wxWidgets/repo32/
here is my wxWidgets version :-
Code
wxWidgets-3.2.4/gtk-build/wx-config --version
3.2.4

Here is my Build log

Code
Checking for existence: /home/gunjan/wxWidgets-3.2.4/gtk-build/samples/gunjansample/test_hello/bin/Debug/test_hello
Set variable: LD_LIBRARY_PATH=.:/usr/lib/x86_64-linux-gnu:
Executing: /home/gunjan/wxWidgets-3.2.4/gtk-build/samples/gunjansample/test_hello/bin/Debug/test_hello  (in /home/gunjan/wxWidgets-3.2.4/gtk-build/samples/gunjansample/test_hello/.)
Process terminated with status -11 (0 minute(s), 0 second(s))


i am still getting the same error here i created small application. At Line 74 you can see SetSizer(StaticBoxSizer1);
Code
#include "test_helloMain.h"
#include <wx/msgdlg.h>
#include <wx/log.h> // Include wxLog for debugging

//(*InternalHeaders(test_helloFrame)
#include <wx/intl.h>
#include <wx/string.h>
//*)

//helper functions
enum wxbuildinfoformat {
    short_f, long_f };

wxString wxbuildinfo(wxbuildinfoformat format)
{
    wxString wxbuild(wxVERSION_STRING);

    if (format == long_f )
    {
#if defined(__WXMSW__)
        wxbuild << _T("-Windows");
#elif defined(__UNIX__)
        wxbuild << _T("-Linux");
#endif

#if wxUSE_UNICODE
        wxbuild << _T("-Unicode build");
#else
        wxbuild << _T("-ANSI build");
#endif // wxUSE_UNICODE
    }

    return wxbuild;
}

//(*IdInit(test_helloFrame)
const long test_helloFrame::ID_BUTTON1 = wxNewId();
const long test_helloFrame::ID_TEXTCTRL1 = wxNewId();
const long test_helloFrame::ID_PANEL1 = wxNewId();
const long test_helloFrame::idMenuQuit = wxNewId();
const long test_helloFrame::idMenuAbout = wxNewId();
const long test_helloFrame::ID_STATUSBAR1 = wxNewId();
//*)

BEGIN_EVENT_TABLE(test_helloFrame,wxFrame)
    //(*EventTable(test_helloFrame)
    //*)
END_EVENT_TABLE()

test_helloFrame::test_helloFrame(wxWindow* parent,wxWindowID id)
{
    wxLogDebug("test_helloFrame Constructor - Start");
    //(*Initialize(test_helloFrame)
    wxBoxSizer* BoxSizer1;
    wxMenu* Menu1;
    wxMenu* Menu2;
    wxMenuBar* MenuBar1;
    wxMenuItem* MenuItem1;
    wxMenuItem* MenuItem2;
    wxStaticBoxSizer* StaticBoxSizer1;

    Create(parent, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_STYLE, _T("wxID_ANY"));
    BoxSizer1 = new wxBoxSizer(wxHORIZONTAL);
    Panel1 = new wxPanel(this, ID_PANEL1, wxDefaultPosition, wxSize(185,134), wxTAB_TRAVERSAL, _T("ID_PANEL1"));
    StaticBoxSizer1 = new wxStaticBoxSizer(wxHORIZONTAL, Panel1, _("Label"));
    Button1 = new wxButton(Panel1, ID_BUTTON1, _("Label"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator, _T("ID_BUTTON1"));
    StaticBoxSizer1->Add(Button1, 1, wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
    TextCtrl1 = new wxTextCtrl(Panel1, ID_TEXTCTRL1, _("Text"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator, _T("ID_TEXTCTRL1"));
    StaticBoxSizer1->Add(TextCtrl1, 1, wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
    Panel1->SetSizer(StaticBoxSizer1);
    SetSizer(StaticBoxSizer1);
    Layout();
    BoxSizer1->Add(Panel1, 1, wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
    SetSizer(BoxSizer1);
    MenuBar1 = new wxMenuBar();
    Menu1 = new wxMenu();
    MenuItem1 = new wxMenuItem(Menu1, idMenuQuit, _("Quit\tAlt-F4"), _("Quit the application"), wxITEM_NORMAL);
    Menu1->Append(MenuItem1);
    MenuBar1->Append(Menu1, _("&File"));
    Menu2 = new wxMenu();
    MenuItem2 = new wxMenuItem(Menu2, idMenuAbout, _("About\tF1"), _("Show info about this application"), wxITEM_NORMAL);
    Menu2->Append(MenuItem2);
    MenuBar1->Append(Menu2, _("Help"));
    SetMenuBar(MenuBar1);
    StatusBar1 = new wxStatusBar(this, ID_STATUSBAR1, 0, _T("ID_STATUSBAR1"));
    int __wxStatusBarWidths_1[1] = { -1 };
    int __wxStatusBarStyles_1[1] = { wxSB_NORMAL };
    StatusBar1->SetFieldsCount(1,__wxStatusBarWidths_1);
    StatusBar1->SetStatusStyles(1,__wxStatusBarStyles_1);
    SetStatusBar(StatusBar1);
    BoxSizer1->Fit(this);
    BoxSizer1->SetSizeHints(this);

    Connect(ID_BUTTON1,wxEVT_COMMAND_BUTTON_CLICKED,(wxObjectEventFunction)&test_helloFrame::OnButton1Click);
    Connect(ID_TEXTCTRL1,wxEVT_COMMAND_TEXT_UPDATED,(wxObjectEventFunction)&test_helloFrame::OnTextCtrl1Text);
    Connect(idMenuQuit,wxEVT_COMMAND_MENU_SELECTED,(wxObjectEventFunction)&test_helloFrame::OnQuit);
    Connect(idMenuAbout,wxEVT_COMMAND_MENU_SELECTED,(wxObjectEventFunction)&test_helloFrame::OnAbout);
    //*)
    wxLogDebug("test_helloFrame Constructor - End");
}

test_helloFrame::~test_helloFrame()
{
    wxLogDebug("test_helloFrame Destructor");
    //(*Destroy(test_helloFrame)
    //*)
}

void test_helloFrame::OnQuit(wxCommandEvent& event)
{
    wxLogDebug("OnQuit");
    Close();
}

void test_helloFrame::OnAbout(wxCommandEvent& event)
{
    wxLogDebug("OnAbout");
    wxString msg = wxbuildinfo(long_f);
    wxMessageBox(msg, _("Welcome to..."));
}

void test_helloFrame::OnButton1Click(wxCommandEvent& event)
{
    wxLogDebug("OnButton1Click");
    wxMessageBox(_("Button clicked"), _("Info"));
}

void test_helloFrame::OnTextCtrl1Text(wxCommandEvent& event)
{
    wxLogDebug("OnTextCtrl1Text");
}





Any help or suggestion or workaround is highly appreciated.
Thanks

Regards,
Hermit
38
Replace libwxsmithlib-dev with codeblocks-contrib to get all plugins.
39
IIRC this issue was fixed about a year ago. Current trunk generates this code:
Code
    wxBoxSizer* BoxSizer1;
    wxStaticBoxSizer* StaticBoxSizer1;

    Create(parent, id, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_STYLE, _T("id"));
    SetClientSize(wxDefaultSize);
    Move(wxDefaultPosition);
    BoxSizer1 = new wxBoxSizer(wxHORIZONTAL);
    Panel1 = new wxPanel(this, ID_PANEL1, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL, _T("ID_PANEL1"));
    StaticBoxSizer1 = new wxStaticBoxSizer(wxHORIZONTAL, Panel1, _("Label"));
    Button1 = new wxButton(Panel1, ID_BUTTON1, _("Label"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator, _T("ID_BUTTON1"));
    StaticBoxSizer1->Add(Button1, 1, wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
    Button2 = new wxButton(Panel1, ID_BUTTON2, _("Label"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator, _T("ID_BUTTON2"));
    StaticBoxSizer1->Add(Button2, 1, wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
    Panel1->SetSizer(StaticBoxSizer1);
    BoxSizer1->Add(Panel1, 1, wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
    SetSizer(BoxSizer1);
    BoxSizer1->SetSizeHints(this);

It runs OK on MSW with wxWidgets 3.2.5
40
Help / Re: How do I install Code:Blocks,Wxwidgets and wxSmith on Linux Mint?
« Last post by david on July 09, 2024, 03:44:15 pm »
For me this worked on Linux Mint 21.3 (Virginia).
Open a terminal and enter below command.
Afterwards open start menu and find Programming -> Code::Blocks IDE.
WxSmith will already be installed as PlugIn.

Code
sudo apt install build-essential  \
                 gdb  \
                 libwxgtk3.0-gtk3-dev  \
                 wx3.0-doc  \
                 codeblocks  \
                 codeblocks-contrib
Pages: 1 2 3 [4] 5 6 7 8 9 10