call to buffer has incorrect number of arguments

If you have a simple question and just want an answer.
osch
New User
Posts: 2
Joined: Sun Sep 03, 2017 10:12 pm

call to buffer has incorrect number of arguments

Postby osch » Fri Oct 20, 2017 2:25 pm

Hello! I started getting this error when i build my project and i cannot figure out why. Does anyone know where im supposed to look in my code for this? I cant figure out what i did. The project has multiple modules and files and i suspect one of the modules is broken, but i cannot figure out which one.

xmake CONFIG=Default all
Checking build modules
Propagating analysis
....../main.xc: warning: call to buffer has incorrect number of arguments
xmake[1]: *** [.build/pca.xml] Error 255
xmake: *** [analyze] Error 2
Gothmag
Experienced Member
Posts: 103
Joined: Wed May 11, 2016 3:50 pm
Contact:

Postby Gothmag » Sat Oct 21, 2017 3:46 pm

I'd start in main.xc and go from there. Any headers directly included there as well.
osch
New User
Posts: 2
Joined: Sun Sep 03, 2017 10:12 pm

Postby osch » Mon Oct 23, 2017 8:33 am

Okay so i figured out what caused this issue and im hoping this might help others in the future. I had copied a function from a post on this forum which name was buffer:

void buffer(server interface var_shared_if i_shared[2]){

This caused this compiler error and made xpca.exe stopped working. I have changed the name of the function and it works just fine now.
robertxmos
Experienced Member
Posts: 106
Joined: Fri Oct 23, 2015 10:23 am

Postby robertxmos » Mon Oct 23, 2017 12:20 pm

It sounds like the dependencies and their timestamps got out of sync.
One of the files had changed, but the artifacts were not being rebuilt.
The easiest (but annoying) fix for this is to run 'xmake clean' to remove all artifacts, followed by 'xmake all'.

Return to “Q&A”

Who is online

Users browsing this forum: No registered users and 10 guests