Closed dapeng17951 closed 5 months ago
Compile example
os:win11 22H2 zig:zig-windows-x86_64-0.11.0
powershell build command:
$env:CGO_ENABLED="1" $env:GOOS="windows" $env:GOARCH="amd64" $env:CC=zig cc $env:CXX=zig c++
erro information:
zig: error: no input files zig: error: no input files
D:\software\Go\pkg\tool\windows_amd64\link.exe: running gcc failed: exit status 1
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000002.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_append_data_chunk': /tmp/go-build/appender.cgo2.c:54: undefined reference to
imp_duckdb_append_data_chunk'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000002.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_appender_create': /tmp/go-build/appender.cgo2.c:76: undefined reference to
imp_duckdb_appender_create'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000002.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_appender_destroy': /tmp/go-build/appender.cgo2.c:95: undefined reference to
imp_duckdb_appender_destroy'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000002.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_appender_error': /tmp/go-build/appender.cgo2.c:113: undefined reference to
__imp_duckdb_appender_error'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000002.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_appender_flush': /tmp/go-build/appender.cgo2.c:132: undefined reference to
imp_duckdb_appender_flush'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000002.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_create_data_chunk': /tmp/go-build/appender.cgo2.c:151: undefined reference to
imp_duckdb_create_data_chunk'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000002.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_create_list_type': /tmp/go-build/appender.cgo2.c:169: undefined reference to
__imp_duckdb_create_list_type'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000002.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_create_logical_type': /tmp/go-build/appender.cgo2.c:188: undefined reference to
imp_duckdb_create_logical_type'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000002.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_create_struct_type': /tmp/go-build/appender.cgo2.c:208: undefined reference to
imp_duckdb_create_struct_type'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000002.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_data_chunk_get_vector': /tmp/go-build/appender.cgo2.c:227: undefined reference to
imp_duckdb_data_chunk_get_vector'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000002.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_data_chunk_set_size': /tmp/go-build/appender.cgo2.c:243: undefined reference to
imp_duckdb_data_chunk_set_size'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000002.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_destroy_data_chunk': /tmp/go-build/appender.cgo2.c:255: undefined reference to
imp_duckdb_destroy_data_chunk'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000002.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_destroy_logical_type': /tmp/go-build/appender.cgo2.c:267: undefined reference to
imp_duckdb_destroy_logical_type'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000002.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_list_vector_get_child': /tmp/go-build/appender.cgo2.c:282: undefined reference to
imp_duckdb_list_vector_get_child'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000002.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_list_vector_get_size': /tmp/go-build/appender.cgo2.c:300: undefined reference to
imp_duckdb_list_vector_get_size'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000002.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_list_vector_reserve': /tmp/go-build/appender.cgo2.c:320: undefined reference to
imp_duckdb_list_vector_reserve'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000002.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_list_vector_set_size': /tmp/go-build/appender.cgo2.c:340: undefined reference to
imp_duckdb_list_vector_set_size'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000002.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_struct_vector_get_child': /tmp/go-build/appender.cgo2.c:359: undefined reference to
__imp_duckdb_struct_vector_get_child'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000002.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_validity_set_row_invalid': /tmp/go-build/appender.cgo2.c:375: undefined reference to
imp_duckdb_validity_set_row_invalid'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000002.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_vector_assign_string_element': /tmp/go-build/appender.cgo2.c:389: undefined reference to
imp_duckdb_vector_assign_string_element'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000002.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_vector_ensure_validity_writable': /tmp/go-build/appender.cgo2.c:401: undefined reference to
imp_duckdb_vector_ensure_validity_writable'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000002.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_vector_get_data': /tmp/go-build/appender.cgo2.c:416: undefined reference to
imp_duckdb_vector_get_data'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000002.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_vector_get_validity': /tmp/go-build/appender.cgo2.c:434: undefined reference to
imp_duckdb_vector_get_validity'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000002.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_vector_size': /tmp/go-build/appender.cgo2.c:451: undefined reference to
imp_duckdb_vector_size'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000003.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_arrow_row_count': /tmp/go-build/arrow.cgo2.c:71: undefined reference to
imp_duckdb_arrow_row_count'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000003.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_destroy_arrow': /tmp/go-build/arrow.cgo2.c:86: undefined reference to
imp_duckdb_destroy_arrow'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000003.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_destroy_extracted': /tmp/go-build/arrow.cgo2.c:98: undefined reference to
imp_duckdb_destroy_extracted'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000003.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_execute_prepared_arrow': /tmp/go-build/arrow.cgo2.c:115: undefined reference to
imp_duckdb_execute_prepared_arrow'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000003.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_query_arrow_array': /tmp/go-build/arrow.cgo2.c:135: undefined reference to
imp_duckdb_query_arrow_array'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000003.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_query_arrow_error': /tmp/go-build/arrow.cgo2.c:153: undefined reference to
imp_duckdb_query_arrow_error'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000003.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_query_arrow_schema': /tmp/go-build/arrow.cgo2.c:173: undefined reference to
imp_duckdb_query_arrow_schema'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000004.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_destroy_prepare': /tmp/go-build/connection.cgo2.c:49: undefined reference to
imp_duckdb_destroy_prepare'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000004.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_disconnect': /tmp/go-build/connection.cgo2.c:61: undefined reference to
imp_duckdb_disconnect'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000004.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_extract_statements': /tmp/go-build/connection.cgo2.c:78: undefined reference to
imp_duckdb_extract_statements'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000004.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_extract_statements_error': /tmp/go-build/connection.cgo2.c:96: undefined reference to
__imp_duckdb_extract_statements_error'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000004.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_prepare': /tmp/go-build/connection.cgo2.c:117: undefined reference to
imp_duckdb_prepare'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000004.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_prepare_error': /tmp/go-build/connection.cgo2.c:135: undefined reference to
imp_duckdb_prepare_error'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000004.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_prepare_extracted_statement': /tmp/go-build/connection.cgo2.c:157: undefined reference to
imp_duckdb_prepare_extracted_statement'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000005.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_close': /tmp/go-build/duckdb.cgo2.c:49: undefined reference to
imp_duckdb_close'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000005.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_connect': /tmp/go-build/duckdb.cgo2.c:66: undefined reference to
imp_duckdb_connect'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000005.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_create_config': /tmp/go-build/duckdb.cgo2.c:85: undefined reference to
imp_duckdb_create_config'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000005.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_destroy_config': /tmp/go-build/duckdb.cgo2.c:100: undefined reference to
imp_duckdb_destroy_config'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000005.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_free': /tmp/go-build/duckdb.cgo2.c:112: undefined reference to
imp_duckdb_free'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000005.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_open_ext': /tmp/go-build/duckdb.cgo2.c:131: undefined reference to
imp_duckdb_open_ext'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000005.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_set_config': /tmp/go-build/duckdb.cgo2.c:152: undefined reference to
imp_duckdb_set_config'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000006.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_column_count': /tmp/go-build/rows.cgo2.c:52: undefined reference to
imp_duckdb_column_count'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000006.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_column_logical_type': /tmp/go-build/rows.cgo2.c:71: undefined reference to
imp_duckdb_column_logical_type'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000006.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_column_name': /tmp/go-build/rows.cgo2.c:90: undefined reference to
__imp_duckdb_column_name'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000006.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_column_type': /tmp/go-build/rows.cgo2.c:110: undefined reference to
imp_duckdb_column_type'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000006.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_data_chunk_get_size': /tmp/go-build/rows.cgo2.c:128: undefined reference to
imp_duckdb_data_chunk_get_size'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000006.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_decimal_internal_type': /tmp/go-build/rows.cgo2.c:147: undefined reference to
imp_duckdb_decimal_internal_type'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000006.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_decimal_scale': /tmp/go-build/rows.cgo2.c:166: undefined reference to
imp_duckdb_decimal_scale'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000006.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_decimal_width': /tmp/go-build/rows.cgo2.c:185: undefined reference to
__imp_duckdb_decimal_width'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000006.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_destroy_result': /tmp/go-build/rows.cgo2.c:200: undefined reference to
imp_duckdb_destroy_result'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000006.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_enum_dictionary_value': /tmp/go-build/rows.cgo2.c:216: undefined reference to
imp_duckdb_enum_dictionary_value'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000006.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_enum_internal_type': /tmp/go-build/rows.cgo2.c:235: undefined reference to
imp_duckdb_enum_internal_type'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000006.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_from_date': /tmp/go-build/rows.cgo2.c:254: undefined reference to
imp_duckdb_from_date'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000006.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_get_type_id': /tmp/go-build/rows.cgo2.c:273: undefined reference to
imp_duckdb_get_type_id'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000006.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_list_type_child_type': /tmp/go-build/rows.cgo2.c:291: undefined reference to
imp_duckdb_list_type_child_type'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000006.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_map_type_key_type': /tmp/go-build/rows.cgo2.c:309: undefined reference to
imp_duckdb_map_type_key_type'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000006.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_map_type_value_type': /tmp/go-build/rows.cgo2.c:327: undefined reference to
imp_duckdb_map_type_value_type'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000006.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_result_chunk_count': /tmp/go-build/rows.cgo2.c:345: undefined reference to
imp_duckdb_result_chunk_count'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000006.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_result_get_chunk': /tmp/go-build/rows.cgo2.c:364: undefined reference to
imp_duckdb_result_get_chunk'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000006.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_struct_type_child_count': /tmp/go-build/rows.cgo2.c:382: undefined reference to
imp_duckdb_struct_type_child_count'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000006.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_struct_type_child_name': /tmp/go-build/rows.cgo2.c:401: undefined reference to
imp_duckdb_struct_type_child_name'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000006.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_struct_type_child_type': /tmp/go-build/rows.cgo2.c:420: undefined reference to
__imp_duckdb_struct_type_child_type'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000006.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_validity_row_is_valid': /tmp/go-build/rows.cgo2.c:440: undefined reference to
imp_duckdb_validity_row_is_valid'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000006.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_vector_get_column_type': /tmp/go-build/rows.cgo2.c:458: undefined reference to
imp_duckdb_vector_get_column_type'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000007.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_bind_blob': /tmp/go-build/statement.cgo2.c:56: undefined reference to
__imp_duckdb_bind_blob'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000007.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_bind_boolean': /tmp/go-build/statement.cgo2.c:78: undefined reference to
imp_duckdb_bind_boolean'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000007.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_bind_double': /tmp/go-build/statement.cgo2.c:99: undefined reference to
imp_duckdb_bind_double'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000007.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_bind_float': /tmp/go-build/statement.cgo2.c:121: undefined reference to
__imp_duckdb_bind_float'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000007.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_bind_hugeint': /tmp/go-build/statement.cgo2.c:142: undefined reference to
imp_duckdb_bind_hugeint'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000007.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_bind_int16': /tmp/go-build/statement.cgo2.c:164: undefined reference to
imp_duckdb_bind_int16'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000007.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_bind_int32': /tmp/go-build/statement.cgo2.c:186: undefined reference to
__imp_duckdb_bind_int32'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000007.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_bind_int64': /tmp/go-build/statement.cgo2.c:207: undefined reference to
imp_duckdb_bind_int64'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000007.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_bind_int8': /tmp/go-build/statement.cgo2.c:229: undefined reference to
imp_duckdb_bind_int8'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000007.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_bind_interval': /tmp/go-build/statement.cgo2.c:250: undefined reference to
__imp_duckdb_bind_interval'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000007.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_bind_null': /tmp/go-build/statement.cgo2.c:270: undefined reference to
imp_duckdb_bind_null'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000007.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_bind_timestamp': /tmp/go-build/statement.cgo2.c:291: undefined reference to
imp_duckdb_bind_timestamp'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000007.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_bind_uint16': /tmp/go-build/statement.cgo2.c:313: undefined reference to
__imp_duckdb_bind_uint16'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000007.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_bind_uint32': /tmp/go-build/statement.cgo2.c:335: undefined reference to
imp_duckdb_bind_uint32'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000007.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_bind_uint64': /tmp/go-build/statement.cgo2.c:356: undefined reference to
imp_duckdb_bind_uint64'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000007.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_bind_uint8': /tmp/go-build/statement.cgo2.c:378: undefined reference to
__imp_duckdb_bind_uint8'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000007.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_bind_varchar': /tmp/go-build/statement.cgo2.c:399: undefined reference to
imp_duckdb_bind_varchar'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000007.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_destroy_pending': /tmp/go-build/statement.cgo2.c:414: undefined reference to
imp_duckdb_destroy_pending'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000007.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_execute_pending': /tmp/go-build/statement.cgo2.c:431: undefined reference to
imp_duckdb_execute_pending'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000007.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_interrupt': /tmp/go-build/statement.cgo2.c:446: undefined reference to
imp_duckdb_interrupt'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000007.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_nparams': /tmp/go-build/statement.cgo2.c:461: undefined reference to
imp_duckdb_nparams'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000007.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_pending_error': /tmp/go-build/statement.cgo2.c:479: undefined reference to
imp_duckdb_pending_error'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000007.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_pending_prepared': /tmp/go-build/statement.cgo2.c:499: undefined reference to
__imp_duckdb_pending_prepared'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000007.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_result_error': /tmp/go-build/statement.cgo2.c:517: undefined reference to
imp_duckdb_result_error'
D:\software\mingw64\bin/ld.exe: C:\Users\32763\AppData\Local\Temp\go-link-2666099191\000007.o: in function _cgo_660ef6ebd578_Cfunc_duckdb_value_int64': /tmp/go-build/statement.cgo2.c:537: undefined reference to
__imp_duckdb_value_int64'
collect2.exe: error: ld returned 1 exit status
Windows is not supported, it has been switched to linux, and the execution on linux is fine, thank you
Compile example
os:win11 22H2 zig:zig-windows-x86_64-0.11.0
powershell build command:
$env:CGO_ENABLED="1" $env:GOOS="windows" $env:GOARCH="386" $env:CC=zig cc $env:CXX=zig c++
go build ./main.go
erro information:
C:\Users\32763\go\pkg\mod\github.com\marcboeker\go-duckdb@v1.6.1\appender.go:451:11: invalid array length 1 << 31 (untyped int constant 2147483648) C:\Users\32763\go\pkg\mod\github.com\marcboeker\go-duckdb@v1.6.1\rows.go:278:11: invalid array length 1 << 31 (untyped int constant 2147483648)