make error when change one parameter

时间:2017-04-10 01:02:07

标签: gcc makefile position

To bypass a length limit, the author tells me:

To build for a higher limit, you can change the Makefile setting -Dmax_sequence_index=32 to -Dmax_sequence_index=63. This is around line 58 in the Makefile".

When I change it I have got an error:

gcc -c -O3 -Wall -Wextra -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DVERSION_MAJOR="\"1"\" -DVERSION_MINOR="\"04"\" -DVERSION_SUBMINOR="\"00"\" -DREVISION_DATE="\"20170312"\" -DSUBVERSION_REV="\"1881:1893M"\" -Dmax_sequence_index=63 -Dmax_malloc_index=40 -Ddiag_hash_size=4194304 pos_table.c -o pos_table_32.o
pos_table.c:1763:6: error: conflicting types for 'limit_position_table'
 void limit_position_table
      ^
In file included from pos_table.c:31:0:
pos_table.h:248:11: note: previous declaration of 'limit_position_table' was here
 void      limit_position_table      (postable* pt, u32 limit, u32 maxChasm);
           ^
make: *** [pos_table_32.o] Error 1

I think I should also change another two files: pos_table.c and pos_table.h. This two files can be seen here: https://github.com/lastz/lastz/tree/master/src

1 个答案:

答案 0 :(得分:0)

这是头文件和源文件之间的同步错误。

# views.py class FileUploadView(views.APIView): parser_classes = (FileUploadParser,) def post(self, request, filename, format=None): file_obj = request.data['file'] # ... # do some stuff with uploaded file # ... return Response(status=200) # urls.py urlpatterns = [ # ... url(r'^upload/(?P<filename>[^/]+)$', FileUploadView.as_view()) ] 标记is used to generate types,包括url = 'http://127.0.0.1:8000/upload/test.csv' #filename should be in url files = {'file': open('test.csv', 'rb')} response = requests.post(url, files=files, headers=api_headers, cookies=api_cookies) 类型。

pos_table.h头文件中,签名为:

max_sequence_index

但是在我们得到的pos_table.c源文件中:

unspos

因此,要解决此问题,您必须编辑void limit_position_table(postable* pt, u32 limit, u32 maxChasm); 头文件,并修改签名以适合源文件中的签名。