‘AF_BINARY_MUL’ was not declared in this scope

Bug #2065190 reported by Edmond Febrinicko Armay
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
arrayfire (Ubuntu)
New
Undecided
Unassigned

Bug Description

helloworld.cpp: In function ‘int main(int, char**)’:
helloworld.cpp:63:34: error: ‘AF_BINARY_MUL’ was not declared in this scope
   63 | af::array S = scan(r, 0, AF_BINARY_MUL);
      | ^~~~~~~~~~~~~
helloworld.cpp:63:23: error: ‘scan’ was not declared in this scope; did you mean ‘scanf’?
   63 | af::array S = scan(r, 0, AF_BINARY_MUL);
      | ^~~~
      | scanf

Arrayfire 3.3.2 is too old, so it doesn't have AF_BINARY_MUL. Since version 3.4, it has enum for some arithmetic operation. Please upgrade the package to latest version, 3.9.0.

Ref:
https://arrayfire.org/docs/defines_8h_source.htm#l00432&gsc.tab=0

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.