• 0
Votes
name

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191

Backtrace:

File: /var/www/html/cnasolution/application/views/question.php
Line: 191
Function: _error_handler

File: /var/www/html/cnasolution/application/controllers/Questions.php
Line: 419
Function: view

File: /var/www/html/cnasolution/index.php
Line: 315
Function: require_once

I have defined a struct in a header file as

ekd_api.h

#include  struct udp_rx_data_filter_lookup {         uint16_t        connection_idx; }; 

Now I have created a function in a ekd_api.cpp file

#include "ekd_api.h" uint32_t qbit_set_udp_rx_connection_idx(uint32_t port_id, struct udp_rx_data_filter_loopkup* _udp_rx_data_filter_loopkup, uint32_t count, uint32_t *extra_info) {         port_id = 0;          _udp_rx_data_filter_loopkup->connection_idx = 1;  } 

Now when I am trying to compile this as gcc xyz.cpp compiler gives me following error

ekd_api.cpp:6:29: error: invalid use of incomplete type ‘struct udp_rx_data_filter_loopkup’     6 |  _udp_rx_data_filter_loopkup->connection_idx = 1;       |                             ^~ ekd_api.cpp:2:66: note: forward declaration of ‘struct udp_rx_data_filter_loopkup’     2 | uint32_t qbit_set_udp_rx_connection_idx(uint32_t port_id, struct udp_rx_data_filter_loopkup* _udp_rx_data_filter_loopkup, uint32_t count, uint32_t *extra_info) 

Please help me here. Thanks

Download script demo [LINK]
Download script demo [LINK 2] Download script demo [LINK 2]
c gcc