首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏along的开发之旅

    NDK开发之 Undefined Reference to Typeinfo

    最近给现在代码增加个功能,可以使用代理走向内网指定服务器,但是功能增加后一直编译不过,报错:"Undefined Reference to Typeinfo HttpClient", 很奇怪,代码看着没什么问题 要让你去猜 查了网上的资料, 发生这种情况一般是 : 虚函数未实现 产生”undefined reference to `typeinfo for xxx’“最常见的原因就是基类的虚函数未实现了。 但是链接成可执行文件时,需要将虚函数的信息放进typeinfo中,这个时候虚函数未实现就会引发这个错误。 混用了no-RTTI代码和RTTI代码 我碰到的正是混用了no-RTTI和RTTI代码的情形。 外部库中的基类使用-fno-rtti选项编译,生成的代码没有typeinfo信息,而我们的代码使用-frtti选项编译,要求基类必须要有typeinfo信息。

    2.4K30发布于 2019-08-01
  • 来自专栏Eureka的技术时光轴

    dnyArray分析,动态数组分析

    procedure setlength(p1,p2,p3,p4); begin VarArgStart(VAList); DynArraySetLength(A, TypeInfo, DimCnt, PNativeInt(VAList)); end; procedure DynArraySetLength(A, TypeInfo, DimCnt, PNativeInt(VAList)); begin := lengthVec^; if newLength <= 0 then if newLength < 0 then Error(reRangeError); _DynArrayClear(a, typeInfo ), PDynArrayTypeInfo(typeInfo).name); elSize := PDynArrayTypeInfo(typeInfo).elSize; if PDynArrayTypeInfo (typeInfo).elType <> nil then ElTypeInfo := PDynArrayTypeInfo(typeInfo).elType^ ElTypeInfo := nil; neededSize

    45620发布于 2019-07-24
  • 来自专栏盛开在夏天的太阳

    java编程思想第四版第十四章 类型信息习题

    .Rhomboid cannot be cast to net.mindview.typeinfo.test4.Circle at net.mindview.typeinfo.test4.Shapes.main .F net.mindview.typeinfo.test8.A net.mindview.typeinfo.test8.E net.mindview.typeinfo.test8.A net.mindview.typeinfo.test8 .B net.mindview.typeinfo.test8.C net.mindview.typeinfo.test8.D net.mindview.typeinfo.test8.B java.lang.Object .FuelFilter", "net.mindview.typeinfo.test14.AirFilter", "net.mindview.typeinfo.test14 .CabinFilter", "net.mindview.typeinfo.test14.OilFilter", "net.mindview.typeinfo.test14

    47520发布于 2020-09-27
  • 来自专栏仙士可博客

    go语言简单实现加载ini文件

     := reflect.TypeOf(result)    if typeInfo.Kind() ! = reflect.Ptr {       return nil    }    if typeInfo.Elem().Kind() ! (); i++ {       field := typeInfo.Field(i)       tagValue := field.Tag.Get("ini")       //fmt.Printf(  := reflect.TypeOf(data)    valueInfo := reflect.ValueOf(data)    if typeInfo.Kind() ! = reflect.Struct {       return    }    var conf []string    for i := 0; i < typeInfo.NumField(); i++

    59210编辑于 2022-01-27
  • 来自专栏ZKEASOFT

    纸壳CMS的插件加载机制

    (var typeInfo in assembly.DefinedTypes) { if (typeInfo.IsAbstract || typeInfo.IsInterface controllers.Contains(typeInfo)) { controllers.Add(typeInfo); typeInfo) { if (! typeInfo.IsClass) { return false; } if (typeInfo.IsAbstract typeInfo.IsPublic) { return false; } if (typeInfo.ContainsGenericParameters

    82720发布于 2018-08-27
  • 来自专栏技术文章

    C# Web控件与数据感应之 CheckBoxList 类

    ) { TypeInfo=TypeInfo.ToLower(); //Byte if((TypeInfo=="varchar")||(TypeInfo=="system.string return SqlDbType.Binary; } if((TypeInfo=="bit")||(TypeInfo=="system.boolean")) { return ; } if((TypeInfo=="decimal")||(TypeInfo=="system.decimal")) { return SqlDbType.Decimal; if(TypeInfo=="image") { return SqlDbType.Image; } if((TypeInfo=="int")||(TypeInfo=="system.int32 ")) { return SqlDbType.Int; } if((TypeInfo=="money")||(TypeInfo=="system.decimal")) {

    29110编辑于 2024-06-20
  • 来自专栏盛开在夏天的太阳

    java编程思想第四版第十四章 类型信息总结

    [false] Simple name: FancyToy Canonical name: net.mindview.typeinfo.toys.FancyToy Class name:net.mindview.typeinfo.toys.HasBatteries net.mindview.typeinfo.toys.Waterproof is interface ? [true] Simple name: Waterproof Canonical name: net.mindview.typeinfo.toys.Waterproof Class name:net.mindview.typeinfo.toys.Shoots [true] Simple name: Shoots Canonical name: net.mindview.typeinfo.toys.Shoots Class name:net.mindview.typeinfo.toys.Toy [false] Simple name: Toy Canonical name: net.mindview.typeinfo.toys.Toy 总结: package net.mindview.typeinfo.toys

    49340发布于 2020-09-27
  • 来自专栏BigData_Flink

    Flink中使用lambda表达式出现的问题

    * * @param typeInfo type information as a return type hint * @return This operator with a given return type hint. */ public SingleOutputStreamOperator<T> returns(TypeInformation<T> typeInfo) { requireNonNull(typeInfo, "TypeInformation must not be null"); transformation.setOutputType(typeInfo

    90510发布于 2021-04-12
  • 来自专栏老蒋专栏

    四个方法实现DEDECMS子栏目获取顶级栏目名称

    = $dsql->GetOne("SELECT * FROM `dede_arctype` WHERE id='{$id}'"); if($typeinfo['reid']==0) return $typeinfo['typename']; else return getTopChannelName($typeinfo['reid']); } } 列表页面调用:{dede:field name function_exists('getTopChannelUrl')) { function getTopChannelUrl($id) { global $dsql; $typeinfo = $dsql->GetOne("SELECT * FROM `dede_arctype` WHERE id='{$id}'"); if($typeinfo['reid']==0) return GetOneTypeUrlA($typeinfo); else return getTopChannelUrl($typeinfo['reid']); } } 然后调用方法和上面一样,页面和列表不同方法

    9.1K30编辑于 2021-12-27
  • 来自专栏跟着阿笨一起玩NET

    获取项目程序集,排除所有的系统程序集(Microsoft.***、System.***等)、Nuget下载包

    ) { var typeInfos = assembly.DefinedTypes; foreach (var typeInfo in typeInfos) { list.Add(typeInfo.AsType()); } return = t.GetTypeInfo(); return typeInfo.IsClass && ! typeInfo.IsAbstract && ! typeInfo.IsGenericType; } return false; }); }

    80610编辑于 2022-09-08
  • 来自专栏技术随笔心得

    C++:从技术实现角度聊聊RTTI

    +16 .quad typeinfo name for Derived .quad typeinfo for Base typeinfo name for Base for Base* 代表获取Base指针所指向对象的typeinfo。 那么typeinfo又是如何获取的呢? typeinfo信息,而在该段中有一句typeinfo name for Derived代表着该类的名称(7Derived经过mangle之后,该句在上述代码中可以找到)。 综上内容,可以知道,对于存在虚函数的类来说,其对象的typeinfo信息存储在该类的虚函数表中。在运行时刻,根据指针的实际指向,获取其typeinfo()信息,从而进行相关操作。

    1.6K90编辑于 2023-06-13
  • 来自专栏DotNet NB && CloudNative

    使用 .NET6 打造动态 API

    Controller class ApiFeatureProvider : ControllerFeatureProvider { protected override bool IsController(TypeInfo typeInfo) { if (! typeof(IService).IsAssignableFrom(typeInfo) || ! typeInfo.IsPublic || typeInfo.IsAbstract || typeInfo.IsGenericType)

    1.3K20编辑于 2022-03-22
  • 来自专栏码匠的流水账

    聊聊flink的StateDescriptor

    . */ @Nullable private TypeInformation<T> typeInfo; ​ /** Name for queries against state * @param typeInfo The type information for the values in the state. . */ protected StateDescriptor(String name, TypeInformation<T> typeInfo, @Nullable T defaultValue ) { this.name = checkNotNull(name, "name must not be null"); this.typeInfo = checkNotNull (typeInfo, "type information must not be null"); this.defaultValue = defaultValue; } ​

    1.6K10发布于 2018-12-23
  • 来自专栏大数据进阶

    flink系列(7)-streamGraph

    DataStreamSource<OUT> addSource(SourceFunction<OUT> function, String sourceName, TypeInformation<OUT> typeInfo ) { if (typeInfo == null) { if (function instanceof ResultTypeQueryable) { typeInfo = ((ResultTypeQueryable <OUT>) function).getProducedType(); } else { try { typeInfo = TypeExtractor.createTypeInfo SourceFunction.class, function.getClass(), 0, null, null); } catch (final InvalidTypesException e) { typeInfo else { sourceOperator = new StreamSource<>(function); } return new DataStreamSource<>(this, typeInfo

    1K20发布于 2019-09-17
  • 来自专栏大内老A

    深入解析ASP.NET Core MVC应用的模块化设计[上篇]

    typeInfo) { if (! typeInfo.IsClass) { return false; } if (typeInfo.IsAbstract) typeInfo.IsPublic) { return false; } if (typeInfo.ContainsGenericParameters typeInfo.Name.EndsWith("Controller", StringComparison.OrdinalIgnoreCase) && ! typeInfo.IsDefined(typeof(ControllerAttribute))) { return false; }

    88310编辑于 2024-03-06
  • 来自专栏

    .NET 2.0 Web Services的bug?

    最后经过不懈努力,终于找到方法那就是在delphi生成webservices声明单元中加入以行 InvRegistry.RegisterInvokeOptions(TypeInfo(ServiceSoap begin   { TODO - Implement method HelloWorld } end; initialization   InvRegistry.RegisterInterface(TypeInfo 8');   InvRegistry.RegisterInvokableClass(ServiceSoapImpl);   InvRegistry.RegisterDefaultSOAPAction(TypeInfo (ServiceSoap), 'http://tempuri.org/HelloWorld');   InvRegistry.RegisterInvokeOptions(TypeInfo(ServiceSoap

    88920发布于 2018-09-12
  • 来自专栏全栈程序员必看

    数据仓库 数据集市_实时数仓应用场景

    + "..." + x.toString) objects.add(TableObject(database.toString, table.toString, typeInfo.toString, =>{ println(x.toString) val database: String = x.dataBase val tableName: String = x.tableName val typeInfo ("dwshow")&&tableName.equalsIgnoreCase("lagou_trade_orders")){ if(typeInfo.equalsIgnoreCase("insert ("insert")){ insertArea(hbtable,info) }else if(typeInfo.equalsIgnoreCase("update")){ insertArea(hbtable ,info) }else if(typeInfo.equalsIgnoreCase("delete")){ deleteArea(hbtable,info) } }) } }) } override

    56720编辑于 2022-11-10
  • 来自专栏码匠的流水账

    聊聊flink的StateDescriptor

    . */ @Nullable private TypeInformation<T> typeInfo; /** Name for queries against state created * @param typeInfo The type information for the values in the state. ) { this.name = checkNotNull(name, "name must not be null"); this.typeInfo = checkNotNull (typeInfo, "type information must not be null"); this.defaultValue = defaultValue; } (executionConfig); // we can drop the type info now, no longer needed typeInfo

    1.4K10发布于 2018-12-28
  • 来自专栏Czy‘s Blog

    实现消息提示组件

    doc.createElement("div"); // 外层容器 unit.className = "msg-unit"; // 设置样式 const typeInfo msgTypeMap["info"] : msgTypeMap[type]; // 取得类型 unit.style.background = typeInfo.background ; // 设置背景色 unit.style.color = typeInfo.color; // 设置文字颜色 unit.style["border"] = `1px solid ${typeInfo.border}`; // 设置边框颜色 const i = doc.createElement("i"); // 图标承载容器 i.className = `${typeInfo.icon} msg-icon`; // 设置图标类型以及样式 const span = doc.createElement

    98710发布于 2021-01-29
  • 来自专栏Eureka的技术时光轴

    获取Delphi所有类的类信息

    { Delphi遍历进程中所有Class的TypeInfo,即便是在implementation中的class或者其他 class的private的子class. 一般普通EXE中的TypeInfo存放在PAGE_EXECUTE_*的内存中,而BPL则存放在PAGE_READ_WRITE的内存中. 所以我们要做的是遍历可执内存的内存片,然后找出TypeInfo的特征. 那么认为这是个合法的class的TypeInfo 为了不产生class的类型信息本单元没用使用任何和class有关的东西,以免多产生class的类型信息 } unit UnitClassInfoEx ; oldLen: Integer; s: string; begin Result := nil; //SetLength(Result, 1); //Result[0] := TypeInfo

    2.7K10发布于 2019-07-24
领券