Opened 15 years ago

Last modified 15 years ago

#20762 closed defect

libofx 0.9.1 fails to compile with "invalid conversion from 'char**' to 'const char**'" — at Initial Version

Reported by: trinidude4@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: Cc:
Port: libofx

Description

I get the following error when upgrading libofx:

ofx_preproc.cpp: In function 'int ofx_proc_file(void*, const char*)': ofx_preproc.cpp:196: error: invalid conversion from 'char' to 'const char' ofx_preproc.cpp:196: error: initializing argument 2 of 'size_t libiconv(void*, const char, size_t*, char, size_t*)'

If you go down to line 191 of ofx_preproc.cpp and change "char * inchar = (char *)s_buffer.c_str();" to "const char * inchar = (char *)s_buffer.c_str();", it compiles, but I don't know how that affects anything.

Change History (0)

Note: See TracTickets for help on using tickets.