升级到C++Builder RAD 10 Settle 一些错误解决方法,使用LLVM  CLang编译器,BCC32C

http://docwiki.embarcadero.com/RADStudio/Seattle/en/Stricter_C%2B%2B_Compilers_%28Clang-based_C%2B%2B_Compilers%29#Two-Phase_Name_Lookup_in_Templates

Brush->Color = RGB(49, 106, 197);

TColor cc= 0x333;

clang and c++11 Stricter。

[CLANG Error] ***.cpp(1993): cannot initialize a parameter of type 'System::Uitypes::TColor' with an rvalue of type 'COLORREF' (aka 'unsigned long')
Vcl.Graphics.hpp(390): passing argument to parameter 'Value' here

fix》(TColor)

(TColor)

Brush->Color =(TColor) RGB(49, 106, 197);

TColor cc= (TColor)0x333;

String().sprintf(TEXT("SUM(%s)"), fn);

[CLANG Error] 1.cpp(2156): cannot pass object of non-trivial type 'String' (aka 'System::UnicodeString') through variadic method; call will abort at runtime

fix》c_str()

.c_str()

String ft, fn;
String().sprintf(L"%s %s;", ft.c_str(), fn.c_str());

so like this ok?

String().sprintf(_D("%s"), _D("Hello"));

TParam *pParam, Variant val

pParam->AsBoolean = (bool)val;

[CLANG Error] tt.cpp(2237): ambiguous conversion for C-style cast from 'System::Variant' to 'bool'

fix:

pParam->AsBoolean = val.VBoolean;

 PtInRect Bound

[CLANG Error] WndSpy.cpp(86): taking the address of a temporary object of type 'System::Types::TRect'

PtInRect(&BoundsRect, MousePoint) && hWindow != hOldWindow)

fix》》

TRect arect=BoundsRect;
PtInRect(&arect, MousePoint) && hWindow != hOldWindow)

 BCBSMP.LIB|cspin

[ilink32 Error] Error: Unresolved external '__InitExceptBlockLDTC' referenced from D:\PROGRAM FILES (X86)\EMBARCADERO\STUDIO\17.0\LIB\WIN32\RELEASE\BCBSMP.LIB|cspin
[ilink32 Error] Error: Unresolved external '__Return_unwind' referenced from D:\PROGRAM FILES (X86)\EMBARCADERO\STUDIO\17.0\LIB\WIN32\RELEASE\BCBSMP.LIB|cspin
[ilink32 Error] Error: Unresolved external '_CatchCleanup()' referenced from D:\PROGRAM FILES (X86)\EMBARCADERO\STUDIO\17.0\LIB\WIN32\RELEASE\BCBSMP.LIB|cspin
[ilink32 Error] Error: Unresolved external '_ReThrowException(unsigned int, unsigned char *)' referenced from D:\PROGRAM FILES (X86)\EMBARCADERO\STUDIO\17.0\LIB\WIN32\RELEASE\BCBSMP.LIB|cspin
[ilink32 Error] Error: Unresolved external '_ThrowExceptionLDTC(void *, void *, void *, void *, unsigned int, unsigned int, unsigned int, unsigned char *, void *)' referenced from D:\PROGRAM FILES (X86)\EMBARCADERO\STUDIO\17.0\LIB\WIN32\RELEASE\BCBSMP.LIB|cgauges

seh_personality_v0

[ilink32 Error] Error: Unresolved external '___seh_personality_v0' referenced from tt.OBJ
[ilink32 Error] Error: Unresolved external '__Unwind_SjLj_Register' referenced from tt.OBJ
[ilink32 Error] Error: Unresolved external '__Unwind_SjLj_Unregister' referenced from D:\PROGRAM FILES (X86)\EMBARCADERO\STUDIO\17.0\LIB\WIN32\DEBUG\RTLE.LIB|ustring
[ilink32 Error] Error: Unresolved external '___cxa_begin_catch' referenced from tt.OBJ
[ilink32 Error] Error: Unresolved external '___cpp_terminate' referenced from tt.OBJ

http://docwiki.embarcadero.com/RADStudio/Seattle/en/C%2B%2B_Compiler

fix:

用bcc32经典编译器,完整编译OK!

Hide exception variables(-xv) 设置为true试试

cxa_rethrow

[ilink32 Error] Error: Unresolved external '___cxa_rethrow' referenced from tt\AENCRYPT.OBJ
[ilink32 Error] Error: Unresolved external '___cxa_end_catch' referenced from tt\AENCRYPT.OBJ
[ilink32 Error] Error: Unresolved external '__Unwind_Resume' referenced from tt\AENCRYPT.OBJ
[ilink32 Error] Error: Unresolved external '__cxxabiv1::__si_class_type_info::' referenced from tt\AENCRYPT.OBJ
[ilink32 Error] Error: Unresolved external '__cxxabiv1::__class_type_info::' referenced from tt\AENCRYPT.OBJ
[ilink32 Error] Error: Unresolved external '___cxa_free_exception' referenced from tt\AENCRYPT.OBJ
[ilink32 Error] Error: Unresolved external '___cxa_allocate_exception' referenced from tt\AENCRYPT.OBJ
[ilink32 Error] Error: Unresolved external '___cxa_throw' referenced from tt\AENCRYPT.OBJ

std::_Xbad_alloc()

[ilink32 Error] Error: Unresolved external 'std::_Xbad_alloc()' referenced from tt\QRYRESULT.OBJ
[ilink32 Error] Error: Unresolved external 'std::_Xlength_error(const char *)' referenced from tt\QRYRESULT.OBJ

 DoGetGestureOptions

[ilink32 Error] Error: Unresolved external '__fastcall Vcl::Controls::TControl::DoGetGestureOptions(System::Set<Vcl::Controls::TInteractiveGesture, 0, 4>&, System::Set<Vcl::Controls::TInteractiveGestureOption, 0, 4>&)' referenced from tt.OBJ

fix:

use bcc32c no error,but component not install ok!

use bcc32: compiler error DoGetGestureOptions, switch to bcc32c and switch bcc32 compiler ok!! component install ok!@

add cpp and h file

void __fastcall DoGetGestureOptions(TInteractiveGestures &Gestures, TInteractiveGestureOptions &Options);

void __fastcall ttt::DoGetGestureOptions(TInteractiveGestures &Gestures, TInteractiveGestureOptions &Options)
{

}

Unable open  BCBSMP.LIB

Lib Path Add

$(BDSLIB)\win32\release

this->DBGrid1->Options.Contains(Vcl::Dbgrids::dgRowLines);
this->DBGridEh1->Options.Contains(Dbgrideh::dgRowLines);
// this->DBGridEh1->Options.Contains(Gridseh::gdRowSelected);

c++10 Seattle Clang error的更多相关文章

  1. nodejs错误:ld: library not found for -lgcc_s.10.5 clang: error: linker command failed with exit code 1 (use -v to see invocation)

    解决方案: $ cd /usr/local/lib $ sudo ln -s ../../lib/libSystem.B.dylib libgcc_s.10.5.dylib 参考链接

  2. Delphi 10 Seattle Update 1 修复 iOS HTTP 协定需求

    在 iOS 9 Apple 加入了 HTTP 协议,还好有 TMS 提供快速修复工具,得以能顺利上架到 App Store. 现在 Delphi 10 Seattle Update 1 提供了这个设定 ...

  3. bug:clang: error: no input files

    1.clang: error: no input files这个问题一般是因为你删除或者移动了某一个文件,但是在你的编译资源里面( project > target > Build Pha ...

  4. 解决clang: error: no such file or directory: such file or directory:的问题

    一,详细问题描述 clang: error: no such file or directory: 'xxx/src/GGBaCollectionViewCell.m' clang: error: n ...

  5. 【原】xcode5.0升级5.1遇到的clang: error: unknown argument: '-fobj-arc'错误

    XCODE5.0升到XCODE5.1后LLVM也从5.0升到5.1,工程报下面的错误了: clang: error: unknown argument: '-fobj-arc' [-Wunused-c ...

  6. clang: error: no such file or directory: xxx.pch

    今天打开一个下载的例子 报clang: error: no such file or directory: xxx.pch的错 说一下解决方案 1.先在你的工程里找到这.pch文件- 2.把它现在的路 ...

  7. 关于mac安装rails报错clang: error: unknown argument

    文章都是从我的个人博客上转载过来的,大家可以点击我的个人博客. www.iwangzheng.com mac上安装rails的时候报错, 安装rails的在终端执行了一句命令: $sudo gem i ...

  8. clang: error: no such file or directory: 报错

    clang: error: no such file or directory: '/Users/KuaiYong/Desktop/svn/gamebox_v1.2/SettingViewContro ...

  9. clang: error: linker command failed with exit code 1 (use -v to see invocation)

    报错提示: ... ld: 6 duplicate symbols for architecture x86_64 clang: error: linker command failed with e ...

随机推荐

  1. CSS3之创建透明边框三角

    简述 在前面,我们分享过关于三角的实现方式,主要根据border属性来设置,下面我们来实现上.下.左.右各种不同颜色的三角. 简述 实现 效果 源码 实现 效果 源码 <!DOCTYPE htm ...

  2. 用AngularJS开发下一代Web应用 系列入门基础教程

    开篇介绍 AngularJS是什么东西?我觉得不用再描述了.可自行去充电一下.按照惯例,让我们先看看一个Hello World的开门简介吧. <!doctype html> <htm ...

  3. splay入门

    在比较了网上的几份模板的速度之后,发现指针版明显快了很多,但是一敲起来....各种不习惯...所以还是学的hzwer 的数组版... bzoj3223:维护reverse操作就可以了 #include ...

  4. css新增UI样式

    1.圆角 border-radius <style> .box{width:200px;height:300px;border:1px solid #000;border-radius:1 ...

  5. [转载] mysql5.6 删除之前的ibdata1文件后再重新生成,遇到[Warning] Info table is not ready to be used. Table 'mysql.slave_master_info' cannot be opened.问题

    [转载] mysql5.6 删除之前的ibdata1文件后再重新生成,遇到[Warning] Info table is not ready to be used. Table 'mysql.slav ...

  6. Java 动态太极图 DynamicTaiChi (整理)

    package demo; import java.awt.Color; import java.awt.Graphics; import javax.swing.JFrame; import jav ...

  7. 极大似然估计&最大后验概率估计

    https://guangchun.wordpress.com/2011/10/13/ml-bayes-map/ http://www.mi.fu-berlin.de/wiki/pub/ABI/Gen ...

  8. php 二维数组的排序

    写这是之前一直二维数组排名困扰.自己写的好复杂. 正题: array_mutisort 官方帮助文档 <?php// 取得列的列表foreach ($data as $key => $ro ...

  9. jQuery学习备忘

    jQuery对象转换成DOM对象 var #cr = $("#cr"); //jQuery对象 var cr = $cf[0]; //DOM对象 alert(cr.checked) ...

  10. Symfony2 学习笔记之内部构件

    Symfony2内部是怎样工作的以及我们如何来扩展它呢?从外部整体上看,symfony2代码是由许多独立的层构成,每一层都是建立在前一层基础之上.其中,自动加载时不受框架直接管理的,它完全是在Univ ...