우분투 저장소에 tidy-dev를 설치하고 설치 경로를 확인했는데 괜찮습니다 (/ usr/include/tidy).html tidy를 사용하여 C++ 프로그램을 컴파일하는 방법 C++
그러나 당신이 나를 도와 줄 수
http://users.rcn.com/creitzel/tidy/tidyx.h에서 깔끔한 C++ 래퍼 tidyx.h을 포함하여 나는 진정한 내 C를 컴파일 플래그 ++ 스크립트를 찾을 수 없습니다?
내 테스트 스크립트 파일 인 1.cpp, tidyx.h가 근처에 있습니다. 하여 1.cpp 내용 : 나는 그것을 시도
#include "tidyx.h"
int main()
{
}
,하지만-좋은 :
$ gcc -I/usr/include/tidy 1.cpp -ltidy
In file included from 1.cpp:1:
tidyx.h: In constructor ‘Tidy::Source::Source()’:
tidyx.h:83: error: invalid conversion from ‘int (*)(ulong)’ to ‘int (*)(void*)’
tidyx.h:84: error: invalid conversion from ‘void (*)(ulong, byte)’ to ‘void (*)(void*, byte)’
tidyx.h:85: error: invalid conversion from ‘Bool (*)(ulong)’ to ‘Bool (*)(void*)’
tidyx.h:86: error: invalid conversion from ‘ulong’ to ‘void*’
tidyx.h: In constructor ‘Tidy::Sink::Sink()’:
tidyx.h:123: error: invalid conversion from ‘void (*)(ulong, byte)’ to ‘void (*)(void*, byte)’
tidyx.h:124: error: invalid conversion from ‘ulong’ to ‘void*’
tidyx.h: In member function ‘void Tidy::Buffer::Attach(void*, uint)’:
tidyx.h:165: error: invalid conversion from ‘void*’ to ‘byte*’
tidyx.h:165: error: initializing argument 2 of ‘void tidyBufAttach(TidyBuffer*, byte*, uint)’
tidyx.h: In member function ‘int Tidy::Document::Create()’:
tidyx.h:496: error: invalid conversion from ‘ulong’ to ‘void*’
tidyx.h:496: error: initializing argument 2 of ‘void tidySetAppData(const _TidyDoc*, void*)’
tidyx.h: In member function ‘void Tidy::Document::SetAppData(ulong)’:
tidyx.h:511: error: invalid conversion from ‘ulong’ to ‘void*’
tidyx.h:511: error: initializing argument 2 of ‘void tidySetAppData(const _TidyDoc*, void*)’
tidyx.h: In member function ‘ulong Tidy::Document::GetAppData()’:
tidyx.h:512: error: invalid conversion from ‘void*’ to ‘ulong’
무엇이 오류 메시지입니까? 어둠 속의 총알은 깔끔한 도서관 (머리말 만 포함)과의 링크를 잊어 버린 것입니까? –