我爱builder

C++Builder 程序员博客

有人会BCC32命令行下编译工程和组件的吗.
命令行编译工程的脚本帖一下个出来,这个好象不难的,  
但是怎么编译组件工程并注册呢, 也帖一个出来吧.

谢谢两位了啊.

其实一般的工程简单的bcc32 project1.bpr 就可以了. 
我就有两个问题需要搞懂的,

一个是如果我是bpk工程,我最后喜欢install怎么办, 没看见bcc32的help怎么写的, 我到时候可以用commandline reg上去.

一个就是我工程里面本身就有路径配置信息等在里面了, 外面的路径参数那些还要不要呢, 我自己产品项目,路径多了, 编译不过了, 在研究中,不过不是很紧急的. 按照IDE的编译方法,其实 我就是要告诉BCC32 我的命令等于是操作F7 F8 F9 是build all, 还是build一个工程, 单个文件?

学习下了。呵呵,看了,谢谢哦.
研究中.
<
谢谢毛毛了,我说的组件是BPK,生成BPL以后,我想最后可以做一个reg HKLM\BORLAND..KNOWNLIB下面就可以了吧,参考在IDE中运行INSTALL以后注册表中写的。

COM组件是你写的那样的,直接regsvr32 xxx.dll就可以了。 不需要深究。
如果要深究,就先从文件关联开始, class_root哪里开始,xxx.dll,这个下面一堆东西,同时也写明了clsid, libtypeid. 然后就是class_root下几个interface的id,根据regsvr32 xxx.dll看看就知道了,所有信息IDL里面有的,不过我么平时自己用不到,而且BCB编译器不赞成我们手动修改那个文件。

<

  • Filed under: C++ Builder
  • WINDOWS XP下搞了几天了 还是编译不成功

    VC6.0 VC2005都试过了
    WIRESHARK的源代码 几个版本也试过了

    检测工具 verify_tools 这一步没问题
    下载需要的库文件和安装 setup 也没问题
    然后distclean 也没问题

    最后进行编译了 就出问题了
    不是这个问题就是那个问题 郁闷死了
    CYGWIN 下的是那个1.29GB的本地安装包
    python 下的是2.4.3版本

    开始用VC6.0的编译器 老是提示有个OBJ无法连接 

    然后换2005 到了一个.C文件就编译出错 大概编译10分钟左右的时候

    我真怀疑这个源代码能不能成功编译呢 是不是源代码里有错误?这个没有用过,呵呵,帮你顶自己搞定了 工具的问题 现在看代码中……..

  • Filed under: C++ Builder
  • WINDOWS XP下搞了几天了 还是编译不成功

    VC6.0 VC2005都试过了
    WIRESHARK的源代码 几个版本也试过了

    检测工具 verify_tools 这一步没问题
    下载需要的库文件和安装 setup 也没问题
    然后distclean 也没问题

    最后进行编译了 就出问题了
    不是这个问题就是那个问题 郁闷死了
    CYGWIN 下的是那个1.29GB的本地安装包
    python 下的是2.4.3版本

    开始用VC6.0的编译器 老是提示有个OBJ无法连接 

    然后换2005 到了一个.C文件就编译出错 大概编译10分钟左右的时候

    我真怀疑这个源代码能不能成功编译呢 是不是源代码里有错误?

    自己搞定了 工具的问题 现在看代码中……..

  • Filed under: C++ Builder
  • 我下载最新的ics7组件包,发现编译时报错,如下错误
    请问如何解决?
    [DCC Error] OverbyteIcsEmulVT.pas(3473): E2030 Duplicate case label
    [DCC Warning] OverbyteIcsEmulVT.pas(3477): W1063 Widening given AnsiChar constant (#$DA) to WideChar lost information
    [DCC Error] OverbyteIcsEmulVT.pas(3477): E2030 Duplicate case label
    [DCC Warning] OverbyteIcsEmulVT.pas(3482): W1063 Widening given AnsiChar constant (#$C0) to WideChar lost information
    [DCC Error] OverbyteIcsEmulVT.pas(3482): E2030 Duplicate case label
    [DCC Warning] OverbyteIcsEmulVT.pas(3487): W1063 Widening given AnsiChar constant (#$C1) to WideChar lost information
    [DCC Error] OverbyteIcsEmulVT.pas(3487): E2030 Duplicate case label
    [DCC Warning] OverbyteIcsEmulVT.pas(3493): W1063 Widening given AnsiChar constant (#$C2) to WideChar lost information
    [DCC Error] OverbyteIcsEmulVT.pas(3493): E2030 Duplicate case label
    [DCC Warning] OverbyteIcsEmulVT.pas(3499): W1063 Widening given AnsiChar constant (#$C3) to WideChar lost information
    [DCC Error] OverbyteIcsEmulVT.pas(3499): E2030 Duplicate case label
    [DCC Warning] OverbyteIcsEmulVT.pas(3505): W1063 Widening given AnsiChar constant (#$B4) to WideChar lost information
    [DCC Error] OverbyteIcsEmulVT.pas(3505): E2030 Duplicate case label
    [DCC Warning] OverbyteIcsEmulVT.pas(3511): W1063 Widening given AnsiChar constant (#$BF) to WideChar lost information
    [DCC Error] OverbyteIcsEmulVT.pas(3511): E2030 Duplicate case label
    [DCC Warning] OverbyteIcsEmulVT.pas(3516): W1063 Widening given AnsiChar constant (#$D9) to WideChar lost information
    [DCC Error] OverbyteIcsEmulVT.pas(3516): E2030 Duplicate case label
    [DCC Warning] OverbyteIcsEmulVT.pas(3521): W1063 Widening given AnsiChar constant (#$D6) to WideChar lost information
    [DCC Error] OverbyteIcsEmulVT.pas(3521): E2030 Duplicate case label
    [DCC Warning] OverbyteIcsEmulVT.pas(3528): W1063 Widening given AnsiChar constant (#$D3) to WideChar lost information
    [DCC Error] OverbyteIcsEmulVT.pas(3528): E2030 Duplicate case label
    [DCC Warning] OverbyteIcsEmulVT.pas(3535): W1063 Widening given AnsiChar constant (#$B7) to WideChar lost information
    [DCC Error] OverbyteIcsEmulVT.pas(3535): E2030 Duplicate case label
    [DCC Warning] OverbyteIcsEmulVT.pas(3542): W1063 Widening given AnsiChar constant (#$BD) to WideChar lost information
    [DCC Error] OverbyteIcsEmulVT.pas(3542): E2030 Duplicate case label
    [DCC Warning] OverbyteIcsEmulVT.pas(3549): W1063 Widening given AnsiChar constant (#$D5) to WideChar lost information
    [DCC Error] OverbyteIcsEmulVT.pas(3549): E2030 Duplicate case label
    [DCC Warning] OverbyteIcsEmulVT.pas(3556): W1063 Widening given AnsiChar constant (#$D4) to WideChar lost information已解决,
    PS:居然现在不能结贴怎么解决的啊我也遇到一样问题,能否公布一下解决的办法?kankan

  • Filed under: C++ Builder
  • 我下载最新的ics7组件包,发现编译时报错,如下错误
    请问如何解决?
    [DCC Error] OverbyteIcsEmulVT.pas(3473): E2030 Duplicate case label
    [DCC Warning] OverbyteIcsEmulVT.pas(3477): W1063 Widening given AnsiChar constant (#$DA) to WideChar lost information
    [DCC Error] OverbyteIcsEmulVT.pas(3477): E2030 Duplicate case label
    [DCC Warning] OverbyteIcsEmulVT.pas(3482): W1063 Widening given AnsiChar constant (#$C0) to WideChar lost information
    [DCC Error] OverbyteIcsEmulVT.pas(3482): E2030 Duplicate case label
    [DCC Warning] OverbyteIcsEmulVT.pas(3487): W1063 Widening given AnsiChar constant (#$C1) to WideChar lost information
    [DCC Error] OverbyteIcsEmulVT.pas(3487): E2030 Duplicate case label
    [DCC Warning] OverbyteIcsEmulVT.pas(3493): W1063 Widening given AnsiChar constant (#$C2) to WideChar lost information
    [DCC Error] OverbyteIcsEmulVT.pas(3493): E2030 Duplicate case label
    [DCC Warning] OverbyteIcsEmulVT.pas(3499): W1063 Widening given AnsiChar constant (#$C3) to WideChar lost information
    [DCC Error] OverbyteIcsEmulVT.pas(3499): E2030 Duplicate case label
    [DCC Warning] OverbyteIcsEmulVT.pas(3505): W1063 Widening given AnsiChar constant (#$B4) to WideChar lost information
    [DCC Error] OverbyteIcsEmulVT.pas(3505): E2030 Duplicate case label
    [DCC Warning] OverbyteIcsEmulVT.pas(3511): W1063 Widening given AnsiChar constant (#$BF) to WideChar lost information
    [DCC Error] OverbyteIcsEmulVT.pas(3511): E2030 Duplicate case label
    [DCC Warning] OverbyteIcsEmulVT.pas(3516): W1063 Widening given AnsiChar constant (#$D9) to WideChar lost information
    [DCC Error] OverbyteIcsEmulVT.pas(3516): E2030 Duplicate case label
    [DCC Warning] OverbyteIcsEmulVT.pas(3521): W1063 Widening given AnsiChar constant (#$D6) to WideChar lost information
    [DCC Error] OverbyteIcsEmulVT.pas(3521): E2030 Duplicate case label
    [DCC Warning] OverbyteIcsEmulVT.pas(3528): W1063 Widening given AnsiChar constant (#$D3) to WideChar lost information
    [DCC Error] OverbyteIcsEmulVT.pas(3528): E2030 Duplicate case label
    [DCC Warning] OverbyteIcsEmulVT.pas(3535): W1063 Widening given AnsiChar constant (#$B7) to WideChar lost information
    [DCC Error] OverbyteIcsEmulVT.pas(3535): E2030 Duplicate case label
    [DCC Warning] OverbyteIcsEmulVT.pas(3542): W1063 Widening given AnsiChar constant (#$BD) to WideChar lost information
    [DCC Error] OverbyteIcsEmulVT.pas(3542): E2030 Duplicate case label
    [DCC Warning] OverbyteIcsEmulVT.pas(3549): W1063 Widening given AnsiChar constant (#$D5) to WideChar lost information
    [DCC Error] OverbyteIcsEmulVT.pas(3549): E2030 Duplicate case label
    [DCC Warning] OverbyteIcsEmulVT.pas(3556): W1063 Widening given AnsiChar constant (#$D4) to WideChar lost information已解决,
    PS:居然现在不能结贴

    怎么解决的啊我也遇到一样问题,能否公布一下解决的办法?kankan

  • Filed under: C++ Builder
  • 软件:BCB5.0 XP系统

    某成员函数里面内嵌简单汇编代码:
    _asm { 
      mov ax, 0×0e07 
      xor bx, bx 
      }

    编译错误信息:
    [C++ Fatal error] F0000 Tasm32 returned with an error while assembling the file XXX.asm

    试了一些办法,如在该cpp文件最前面加#pragma inline 或更改advancecompiler的cpu类型为奔腾等,都不能fix错误。

    请大家帮忙支支招。 先谢谢了。http://topic.csdn.net/t/20020518/09/732071.html

    http://book.77169.org/ask29/how206603.htmhttp://www.xmsc.com.cn/InfoView/Article_118425.html看了楼上的文章,都没解决问题。 个人感觉是跟bcb5.0编译设置相关。
    不知大家有没有遇到过类似问题呢。那你看看设置里面有没有相关的up一下没弄过,帮顶你可以把ASM先编译成OBJ,在通过链接来完成

    调用的话和LIB的操作一样up

  • Filed under: C++ Builder
  • 如题。
    以前用C++ BUILER6写的代码,,用C++ BUILDER2010.都不能编译啊。。
    以前的工程文件.bpr 文件都不支持了。。

    应该怎么做。。

    哪位讲下,这2都的区别啊。一般的代碼可以直接轉換通過的
    一些特殊的問題 比如Unicode的問題 等是需要改動的
    貼出你編譯出錯誤來看看注意你是否用了三方组件,另外在2010有些组件已经不支持了(如报表组件改为Rave),Indy组件的变化很大,程序需要重新写.

    注意Unicode.

    总的来说如果不是组件问题,耐心点,程序还是能升级的<
    “E2034 Cannot covert'wchar_t*' to 'const char*'”
    既然用了2010 你最好还是遵守它的特性
    把出错的不放 的字符串前面加个 "L" 如:  L"Text"
    或者你直接用WideString UncodeString代替AnsiString<
    <
    <
    主要的原因是C++Buildr6中String是AnsiString类型,而在2009和2010中,String是UnicodeString类型。

    所以,将旧代码中的String替换为AnsiString,可能直接在2010中编译成功率高。哦。。谢谢大家了。。。 结贴

  • Filed under: C++ Builder
  • 各位BCB编程高手:
      您好!
      向您求教如下问题:
      我编写的进化算法优化函数程序,在未编译成独立的执行文件在BCB平台上运行正常,可点击执行其编译成的独立的可执行文件,就出现“应用程序异常  未知软件异常oxoeedfade  位置为ox7c812afb ”,请问:
      1.这是什么问题?何原因?
      2.如何处理?如何查错?
      谢谢! 能把源程序贴一下吗?liusy780626君:
      您好!谢谢您的关心和回复.
      我的竞技争冠算法函数优化程序实在太大了,有1.28MB。无法将源程序贴上。
      在实现无约束优化程序时,可以编译成独立运行的可执行文件,虽然有一点问题,但不影响使用。后来扩展功能,以实现有约束优化时,就发生现在的问题。
      当我把CodeGuard用上以便查错,再企图编译成独立的可执行文件时,干脆无法完成编译,出现链接出错:“Could not open E:myBCBfile MultipleHumpGA.exe(program still running?)", 不知是何意思?何问题?出现
    Could not open xxx.exe(program still running?)
    这个提示,是因为这个xxx.exe仍然存在于进程中(可能窗口已关闭但进程未完全退出),打开进程管理器,找到xxx.exe终止,再编译相应的工程即可。ccrun君:
        您好!谢谢您的指教,让我试试。
        另外,请教:如何在代码上,在主窗口关闭时,让程序自动退出进程呢?各位:

        谢谢您腾出了时间给了我指点。
        打开CodeGuard,编译成非独立运行的exe文件,可正常运行。虽关闭主窗口时,出现“Access violation at address 74DBODE8.Read of address 74DB0DE8”。
        打开CodeGuard,编译独立的执行文件时,出现“CodeGuard delected error(s) in the program. A log file will be created.”,此说:程序中的错误被CodeGuard检测到,一个长文件将创建。但该这个长文件放在哪里?
        按确定后,又出现“:“应用程序发生异常  未知的软件异常 (0×0eedfade), 位置为 0×7c812afb.”。 MultipleHumpGA.cgl中见:

    Error 00001. 0×400000 (Thread 0×0EC4):
    Exception 0xEEDFADE:
    Call Tree:
      0×7C812AFB(=kernel32.dll:0×01:011AFB)
      0×004BF7A2(=MultipleHumpGA.exe:0×01:0BE7A2)
      0×004BF973(=MultipleHumpGA.exe:0×01:0BE973)
      0×004BF29A(=MultipleHumpGA.exe:0×01:0BE29A)
      0×004BF27C(=MultipleHumpGA.exe:0×01:0BE27C)
      0×004C2D8B(=MultipleHumpGA.exe:0×01:0C1D8B)

    什么意思?调用“树”,我的程序中有数学表达式解析器,其中用表达式树来表示数学表达式。
    可是非独立运行的exe文件运行正常?!而且解析的表达式未见有误。难道释放表达式树时有误?

  • Filed under: C++ Builder
  • 用TFileStream在bcb编译状态下读取可执行文件自身出错,而非编译状态下没有问题,虽然编译好后可以用但是感觉超级的不爽,有没有高手给个解决方案?创建TFileStream对象的时候,加一个fmShareDenyNone参数。 TFileStream *Source = new TFileStream(TargetFile, fmOpenRead && fmShareDenyNone);

    一直有加的,不行,BCB调试模式下运行后异常,程序无法继续,而独立运行没有问题,运行结果也正确,虽然可以运行,但是感觉很不爽

    晕啊,刚刚我也发现改成+和|就都没有问题了,此次老妖得全部分数,如果老妖没有什么技术上的补充的话我就结贴了,3Q了支持老妖!
    没补充了,可以结帖了。

  • Filed under: C++ Builder
  • 我下载了openssl 0.9.6,按照readme上的说明

    * Configure for building with Borland Builder:
      > perl Configure BC-32

    * Create the appropriate makefile
      > msdo_nasm

    * Build
      > make -f mscb.mak

    进行操作。
    但是在进行build的时候,执行到
    Warning W8019 tmp32md32_common.h 599: Code has no effect in function MD5_Final
            n_o_T_a_s_m /Focryptomd5asmm5_win32.obj .cryptomd5asmm5_win32.asm

    'n_o_T_a_s_m' 不是内部或外部命令,也不是可运行的程序
    或批处理文件。

    就报错了,希望指点怎么才能成功编译openssl?帮你顶,不曾用过2007

  • Filed under: C++ Builder
  • 类别

    最新

    标签

    链接


    存档