[PSR] SHM - error input argument

cermaj14 at fel.cvut.cz cermaj14 at fel.cvut.cz
Tue Nov 7 00:34:01 CET 2017


Changing the compiler reveals the problem at my site in header file  
called function: set_shm_company(struct) instead of correct  
set_shm_company(char*).

Thank you a lot
Jan Čermák


Cituji Michal Sojka <sojkam1 na fel.cvut.cz>:

> On Mon, Nov 06 2017, cermaj14 na fel.cvut.cz wrote:
>> Hello,
>> I have a problem with homework 3 with pasting string argument from
>> terminal to specific function. Accurately it is in main function in
>> company file. When I call function "set_shm_company(char
>> *company_name)" from the said main function it occurs this error:
>>
>> "/home/cermaj14/WindRiver/workspace/Monitor_app/company.c", line 71:
>> internal error: assertion failed: Invalid C99 IL expression kind
>> (./../src/eparse/lower_c99.c, line 3690)
>>    	id_company = set_shm_company(d);
>
> Yes, it looks like a compiler problem, probably triggered by something
> strange in your code. It is hard to guess what the problem could be,
> when we do not see your code. If you are not able to resolve the issue
> by changing your code, try changing the compiler. This can be easily
> done by changing "Active build spec" from SIMLINUXdiab to SIMLINUXgnu
> (or vice versa).
>
> Best regards,
> -Michal Sojka






More information about the PSR mailing list