Switch to English?
Yes
Переключитись на українську?
Так
Переключиться на русскую?
Да
Przełączyć się na polską?
Tak
Post your project for free and start receiving proposals from freelancers within minutes after publication!

Перестала работать программа на С под Ubuntu после обновления

7 USD

Client does not wish to make a prepayment? Payment through Safe helps avoid potential fraud.
  • Aleksandr S.
    21 September 2018, 11:15 |

    Здравствуйте.

    Какая версия бубунты?

    grive используете?

  • Viacheslav Bykov
    21 September 2018, 11:23 |

    не могу сказать или используется grive. Необходимости в нем нет. Вот текст фрагмента программы

    int sysconf_load(const char* filename, config* cnf) {
        FILE* config_fd = 0;
        char* config_buff = 0;
        int config_size = 0;

        // trying to open config file
        config_fd = fopen(CONFIG_FILE, "r");
        if (config_fd == 0) {
            printf("Can not open file \n");
            return -1;
        }
        // getting config size
        fseek(config_fd, 0, SEEK_END);
        config_size = ftell(config_fd);
        rewind(config_fd);

        // allocate memory and read config file
        config_buff = (char*) malloc(config_size);
        fread(config_buff, 1, config_size, config_fd);

        struct json_object* root;
        root = json_tokener_parse(config_buff);
        if ((long int) root < 0) {
            int err = -(long int) root;
            printf("parse error %s \n", json_tokener_errors[err]);
            exit(-1);
        }

        if (sysconf_loadSystem(root, &cnf->sys) < 0) return -1;

        if (sysconf_loadRooms(root, (room*) & cnf->rooms) < 0) return -1;

        free(config_buff);
        fclose(config_fd);
        return 0;
    };


  • Viacheslav Bykov
    21 September 2018, 12:02 |

    Все, вопрос решился просто перекомпиляцией программы! Спасибо!

Current freelance projects in the category C & C++

Comparative analysis of the effectiveness of custom software (v2.2-field) and reference software (Meshtastic v2.x)

22 USD

Comparative analysis of the effectiveness of custom software (v2.2-field) and reference software (Meshtastic v2.x) on the identical hardware platform (ESP32 + SX1268, 2W) based on the criteria of range, throughput, link stability, and power consumption. Conduct tests with…

C & C++C# ∙ 23 hours 6 minutes back ∙ 2 proposals

Consultation and audit of the current project on Odoo 19 Community Edition

We are looking for an Odoo Developer — a solo developer with experience in Odoo 19 Community Edition, including using Claude Code. We need a specialist who has successfully implemented projects in Odoo and practical experience in development using Claude Code. Important: we only…

C & C++Javascript and Typescript ∙ 4 days back ∙ 7 proposals

Software development for Arduino (RF modules 3–7.5 GHz, automatic frequency scanning)

It is necessary to develop a system on Arduino for the automatic search of active analog video signals and the automatic tuning of the transmitter to the detected frequency.It is planned to use three separate transceiver modules: 3000–4200 MHz; 4900–6000 MHz; 6100–7500…

C & C++Embedded Systems & Microcontrollers ∙ 5 days back ∙ 4 proposals

Black Ukraine (RP-project on base MTA)

1154 USD

Fixing bugs of varying complexity, like those pictured. Map navigation adjustments. Fixing map holes, adapting vehicles to the project, removing logos, or rewriting them.

C & C++Python ∙ 6 days 12 hours back ∙ 22 proposals

Residential Proxy Infrastructure Engineer

We're building a residential proxy network from scratch — fully owned, no third-party suppliers. We need one exceptional network engineer to build the entire technical foundation. What you'll build: - Android background SDK that routes proxy traffic through user devices…

C & C++DevOps ∙ 10 days 21 hours back ∙ 15 proposals

Client
Viacheslav Bykov
Ukraine Vinnytsia  8  0
Project published
7 years back
40 views
Tags