Giter Club home page Giter Club logo

base's Introduction

base

封装了跨平台的c++基础代码库(window,mac),部分代码来源于开源的chromium项目。 详细使用方法参照代码注释,已经比较详细了,这里只列出比较重要的部分。 ##代码编译 代码本身已经包含了windows的vs 2008工程代码,同时包含了mac平台的makefile文件,可以直接编译,编译会生成各自平台的动态库(dylib,dll)。 ##glog google的c++风格log库,具体使用参照相关说明,这里不详细介绍了。 ##文件操作 支持判断文件是否存在,目录是否存在,获取文件的扩展名,枚举目录的所有文件等操作。 ##线程操作 支持基础的线程创建,和调用操作。 ##动态库操作 支持windows,mac的动态库加载,释放和函数地址加载功能。 ##常用字符串操作 支持字符串的不区分大小比较,字符串转化为大写,字符串分割等操作。

base's People

Contributors

tbago avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

linzai1992

base's Issues

Cannot compile with Apple LLVM version 6.0

error message:
In file included from ./strings/string_number_conversions.cc:5:
../base/strings/string_number_conversions.h:121:23: error: implicit instantiation of undefined template
'std::basic_stringstream<char, std::char_traits, std::allocator >'
std::stringstream stream;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/c++/4.2.1/iosfwd:83:11: note:
template is declared here
class basic_stringstream;
^
In file included from ./strings/string_number_conversions.cc:5:
../base/strings/string_number_conversions.h:131:24: error: implicit instantiation of undefined template
'std::basic_stringstream<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >'
std::wstringstream stream;

Apple LLVM 6.0 Error due to cordova device plugin

Hi,
I installed the cordova device plugin for iOS to my project, but as soon as I build the project it gives me a Apple LLVM 6.0 Error.

Under Compile CDVDevice.m I get this description:

CompileC DerivedData/mpesaCustomer/Build/Intermediates/mpesaCustomer.build/Debug-iphoneos/mpesaCustomer.build/Objects-normal/armv7/CDVDevice.o mpesaCustomer/Plugins/cordova-plugin-device/CDVDevice.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/mac358818/vodafoneMpesaCustomer/platforms/ios
export LANG=en_US.US-ASCII
export PATH="/Applications/Xcode 3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode 3.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode\ 3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch armv7 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c99 -fobjc-arc -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -isysroot /Applications/Xcode\ 3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -fvisibility=hidden -Wno-sign-conversion -miphoneos-version-min=6.0 -iquote /Users/mac358818/vodafoneMpesaCustomer/platforms/ios/DerivedData/mpesaCustomer/Build/Intermediates/mpesaCustomer.build/Debug-iphoneos/mpesaCustomer.build/mpesaCustomer-generated-files.hmap -I/Users/mac358818/vodafoneMpesaCustomer/platforms/ios/DerivedData/mpesaCustomer/Build/Intermediates/mpesaCustomer.build/Debug-iphoneos/mpesaCustomer.build/mpesaCustomer-own-target-headers.hmap -I/Users/mac358818/vodafoneMpesaCustomer/platforms/ios/DerivedData/mpesaCustomer/Build/Intermediates/mpesaCustomer.build/Debug-iphoneos/mpesaCustomer.build/mpesaCustomer-all-target-headers.hmap -iquote /Users/mac358818/vodafoneMpesaCustomer/platforms/ios/DerivedData/mpesaCustomer/Build/Intermediates/mpesaCustomer.build/Debug-iphoneos/mpesaCustomer.build/mpesaCustomer-project-headers.hmap -I/Users/mac358818/vodafoneMpesaCustomer/platforms/ios/DerivedData/mpesaCustomer/Build/Products/Debug-iphoneos/include -I/Users/mac358818/vodafoneMpesaCustomer/platforms/ios/DerivedData/mpesaCustomer/Build/Products/Debug-iphoneos/usr/local/lib/include -I/Users/mac358818/vodafoneMpesaCustomer/platforms/ios/DerivedData/mpesaCustomer/Build/Intermediates/UninstalledProducts/include -I/Users/mac358818/vodafoneMpesaCustomer/platforms/ios/DerivedData/mpesaCustomer/Build/Products/Debug-iphoneos -I/Users/mac358818/vodafoneMpesaCustomer/platforms/ios/DerivedData/mpesaCustomer/Build/Intermediates/mpesaCustomer.build/Debug-iphoneos/mpesaCustomer.build/DerivedSources/armv7 -I/Users/mac358818/vodafoneMpesaCustomer/platforms/ios/DerivedData/mpesaCustomer/Build/Intermediates/mpesaCustomer.build/Debug-iphoneos/mpesaCustomer.build/DerivedSources -F/Users/mac358818/vodafoneMpesaCustomer/platforms/ios/DerivedData/mpesaCustomer/Build/Products/Debug-iphoneos -include /Users/mac358818/vodafoneMpesaCustomer/platforms/ios/DerivedData/mpesaCustomer/Build/Intermediates/PrecompiledHeaders/mpesaCustomer-Prefix-dxzmkuigmvorbtaysqymjgwxgdqm/mpesaCustomer-Prefix.pch -MMD -MT dependencies -MF /Users/mac358818/vodafoneMpesaCustomer/platforms/ios/DerivedData/mpesaCustomer/Build/Intermediates/mpesaCustomer.build/Debug-iphoneos/mpesaCustomer.build/Objects-normal/armv7/CDVDevice.d --serialize-diagnostics /Users/mac358818/vodafoneMpesaCustomer/platforms/ios/DerivedData/mpesaCustomer/Build/Intermediates/mpesaCustomer.build/Debug-iphoneos/mpesaCustomer.build/Objects-normal/armv7/CDVDevice.dia -c /Users/mac358818/vodafoneMpesaCustomer/platforms/ios/mpesaCustomer/Plugins/cordova-plugin-device/CDVDevice.m -o /Users/mac358818/vodafoneMpesaCustomer/platforms/ios/DerivedData/mpesaCustomer/Build/Intermediates/mpesaCustomer.build/Debug-iphoneos/mpesaCustomer.build/Objects-normal/armv7/CDVDevice.o

clang: error: no such file or directory: '/Users/mac358818/vodafoneMpesaCustomer/platforms/ios/mpesaCustomer/Plugins/cordova-plugin-device/CDVDevice.m'
clang: error: no input files
Command /Applications/Xcode 3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.