工具 https://arct.top/ zh-hans 咖啡工具的问题 https://arct.top/node/26 <span class="field field--name-title field--type-string field--label-hidden">咖啡工具的问题</span> <span class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/user/1" typeof="schema:Person" property="schema:name" datatype="">大角星</span></span> <span class="field field--name-created field--type-created field--label-hidden">周一, 03/13/2023 - 09:36</span> <div class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>咖啡工具号称可以直接在命令行替换gcc命令,进行代码编译和分析:</p> <img alt="图1" data-entity-type="file" data-entity-uuid="78fabff4-fb3d-4779-827d-005ad34e44e8" src="/sites/default/files/inline-images/Screenshot_20230313_075213_cn.wps_.moffice_eng_0.jpg" class="align-center" width="2340" height="1080" loading="lazy" /> <p>但是,实际操作时,完全不是这样。</p> <p>尝试了两个例子,一个是系统自带的minilax,再使用gcc进行正确编译运行后,用cafecc替换,出现__builtin_va_list未定义的问题;另一个例子来自其它开源系统,也是在正确编译运行后,替换gcc,出现了__SIZE_TYPE__未定义的错误。经查,这两个都是gcc的内部定义,外部库中均没有。</p> <p>在使用VS时,也出现不一致的情况,在界面中正确编译执行后,采用同样的头文件路径在命令行使用cafecc编译,得到不同的错误结果。所幸此时命令行在有错误的情况下,仍然生成的最终结果rfg文件。</p> <p>请问,有碰见同样情况吗?如何理解与解决?</p></div> <section class="field field--name-comment field--type-comment field--label-above comment-wrapper" id="yxldsgid"> <h2 class="title">评论</h2> <article role="article" data-comment-user-id="139" id="comment-6924" about="/comment/6924" typeof="schema:Comment" class="comment js-comment clearfix"> <span class="hidden" data-comment-timestamp="1678677497"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/user/139" class="profile"> </article> <p class="comment__author"><span rel="schema:author"><span lang="" about="/user/139" typeof="schema:Person" property="schema:name" datatype="">zgy</span></span> </p> <p class="comment__time">周一, 03/13/2023 - 11:18 <span property="schema:dateCreated" content="2023-03-13T03:18:17+00:00" class="rdf-meta hidden"></span> </p> <p class="comment__permalink"><a href="/comment/6924#comment-6924" hreflang="zh-hans">永久连接</a></p> </footer> <div class="comment__content"> <h3 property="schema:name" datatype=""><a href="/comment/6924#comment-6924" class="permalink" rel="bookmark" hreflang="zh-hans">c语言的方言的处理,具体看工具的设计…</a></h3> <div property="schema:text" class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item">c语言的方言的处理,具体看工具的设计,针对gcc这个工具是有设置的</div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=6924&amp;1=default&amp;2=zh-hans&amp;3=" token="GR51sazhxfBcuJFM0PGRveflQCdDvjWKMu_E5yDy7Qs"></drupal-render-placeholder> </div> </article> </section> <div class="field field--name-field-fenlei field--type-entity-reference field--label-above"> <div class="field__label">分类</div> <div class="field__items"> <div class="field__item"><a href="/taxonomy/term/10" hreflang="zh-hans">工具</a></div> </div> </div> Mon, 13 Mar 2023 01:36:39 +0000 大角星 26 at https://arct.top https://arct.top/node/26#comments