Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Problem with pastebincl
- On Mac OS X 10.9.5
- # make
- [...] clang: error: -l curl: 'linker' input unused
- make: *** [CurlPost.o] Error 1
- Fixable at cost of losing warnings etc.: http://cwchen123.tw/utilities/2014/08/07/pastebincl/
- ^^ quoting Mr Chen,
- modify src/Makefile and delete $(CXXLIBS) in the following section:
- # before modification...
- ConfigRead.o: ConfigRead.cpp
- $(CXX) $(CXXLIBS) -c $< $(CXXFLAGS) -o $@ -DENCODING_KEY=\"${ENC_KEY}\"
- %.o: %.cpp
- $(CXX) $(CXXLIBS) -c $< $(CXXFLAGS) -o $@
- # after modification...
- ConfigRead.o: ConfigRead.cpp
- $(CXX) -c $< $(CXXFLAGS) -o $@ -DENCODING_KEY=\"${ENC_KEY}\"
- %.o: %.cpp
- $(CXX) -c $< $(CXXFLAGS) -o $@
- # In same file, delete -Werror in CXXFLAGS:
- # before modification...
- CXXFLAGS=-Wall -Werror -O2
- # after modification...
- CXXFLAGS=-Wall -O2
- # Can now make and make install.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement