arrayfire / arrayfire

ArrayFire: a general purpose GPU library.

Home Page:https://arrayfire.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Build] I got some strange build error when compiling arrayfire using visual studio 2022

3togo opened this issue · comments

commented

The warnings were around three include files fg/exception.h, fg/font.h and fg/histogram.h

Any help?

set #1

"D:\j_opt\arrayfire\build\ArrayFire.sln" (default target) (1) ->
       "D:\j_opt\arrayfire\build\test\basic_c_unified.vcxproj.metaproj" (default target) (9) ->
       "D:\j_opt\arrayfire\build\test\basic_c_unified.vcxproj" (default target) (436) ->
         D:\j_opt\arrayfire\include\fg/exception.h(68,1): error C2143: syntax error: missing ')' be
       fore '(' [D:\j_opt\arrayfire\build\test\basic_c_unified.vcxproj]
         D:\j_opt\arrayfire\include\fg/exception.h(68,1): error C2091: function returns function [D
       :\j_opt\arrayfire\build\test\basic_c_unified.vcxproj]
         D:\j_opt\arrayfire\include\fg/exception.h(68,1): error C2143: syntax error: missing ')' be
       fore 'string' [D:\j_opt\arrayfire\build\test\basic_c_unified.vcxproj]
         D:\j_opt\arrayfire\include\fg/exception.h(68,1): error C2143: syntax error: missing '{' be
       fore 'string' [D:\j_opt\arrayfire\build\test\basic_c_unified.vcxproj]
         D:\j_opt\arrayfire\include\fg/exception.h(68,1): error C2059: syntax error: 'string' [D:\j
       _opt\arrayfire\build\test\basic_c_unified.vcxproj]
         D:\j_opt\arrayfire\include\fg/exception.h(68,1): error C2059: syntax error: ')' [D:\j_opt\
       arrayfire\build\test\basic_c_unified.vcxproj]

set #2

  D:\j_opt\arrayfire\include\fg/font.h(28,1): error C2143: syntax error: missing ')' before
       '(' [D:\j_opt\arrayfire\build\test\basic_c_unified.vcxproj]
         D:\j_opt\arrayfire\include\fg/font.h(28,1): error C2091: function returns function [D:\j_o
       pt\arrayfire\build\test\basic_c_unified.vcxproj]
         D:\j_opt\arrayfire\include\fg/font.h(28,1): error C2143: syntax error: missing ')' before
       'string' [D:\j_opt\arrayfire\build\test\basic_c_unified.vcxproj]
         D:\j_opt\arrayfire\include\fg/font.h(28,1): error C2143: syntax error: missing '{' before
       'string' [D:\j_opt\arrayfire\build\test\basic_c_unified.vcxproj]
         D:\j_opt\arrayfire\include\fg/font.h(28,1): error C2059: syntax error: 'string' [D:\j_opt\
       arrayfire\build\test\basic_c_unified.vcxproj]
         D:\j_opt\arrayfire\include\fg/font.h(28,1): error C2059: syntax error: ')' [D:\j_opt\array
       fire\build\test\basic_c_unified.vcxproj]

set #3

    D:\j_opt\arrayfire\include\fg/histogram.h(44,1): error C2143: syntax error: missing ')' be
       fore '(' [D:\j_opt\arrayfire\build\test\basic_c_unified.vcxproj]
         D:\j_opt\arrayfire\include\fg/histogram.h(44,1): error C2091: function returns function [D
       :\j_opt\arrayfire\build\test\basic_c_unified.vcxproj]
         D:\j_opt\arrayfire\include\fg/histogram.h(44,1): error C2143: syntax error: missing ')' be
       fore 'string' [D:\j_opt\arrayfire\build\test\basic_c_unified.vcxproj]
         D:\j_opt\arrayfire\include\fg/histogram.h(44,1): error C2143: syntax error: missing '{' be
       fore 'string' [D:\j_opt\arrayfire\build\test\basic_c_unified.vcxproj]
         D:\j_opt\arrayfire\include\fg/histogram.h(44,1): error C2059: syntax error: 'string' [D:\j
       _opt\arrayfire\build\test\basic_c_unified.vcxproj]
         D:\j_opt\arrayfire\include\fg/histogram.h(44,1): error C2059: syntax error: ')' [D:\j_opt\
       arrayfire\build\test\basic_c_unified.vcxproj]
commented

By deleting everything and rebuilding, the problem is fixed.