>
> I have serious problems with gcc 8.3.0:

 
 root@beaglebone:~/evseclient/compilec# gcc -o gcctest gcctest.c
gcctest.c: In function ‘main’:
gcctest.c:15:3: warning: implicit declaration of function ‘close’; did you 
mean ‘pclose’? [-Wimplicit-function-declaration]
   close(memh);
   ^~~~~
   pclose

For this source:

#include <stdio.h>
#include <stdlib.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <fcntl.h>

int main(void)
{
int memh;

/* using memory mapped I/O */
memh=open("/dev/mem", O_RDWR);

if (memh!=0) {
close(memh);
}
}

The problems get even weirder, with this sort of thing:

evsectlna.c:86:23: error: unknown type name ‘chargecurrent’
 int availablecurrent, chargecurrent, pwmisactive, nameplaterating, 
rfidpresent;
                                 ^~~~~~~~~~~~~

Question: is there  a way to add some older gcc's to the 
etc/apt/soures.list so I can find something that I can use?



-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/edfb985e-05d8-43ab-83d0-6d1f97b47475%40googlegroups.com.

Reply via email to