Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/Tools CL/TLib    [ Add a report in this area ]  
Report #:  48764   Status: Closed
TLIB Error unexpected char in command line
Project:  C++Builder Build #:  11.0.2728.7400
Version:    11.0 Submitted By:   Daniel Horn
Report Type:  Basic functionality failure Date Reported:  7/9/2007 9:19:23 AM
Severity:    Serious / Highly visible problem Last Updated: 10/9/2007 12:09:30 PM
Platform:    All versions Internal Tracking #:  
Resolution: Duplicate  Resolved in Build: : 11.0.2761.8031
Duplicate of:  49116
Voting and Rating
Overall Rating: (1 Total Rating)
3.00 out of 5
Total Votes: None
Description
Rad Studio reports TLIB Error for static library project created using environment.

Problem may have to do with having many modules (72) in library and/or with IDE incorrectly generating command line (or inline response file) for TLIB.
Steps to Reproduce:
1)  Create a new C++ project for a static library.
2)  Add files to project.
3)  Modify include path and defines as appropriate.
4)  Make the library.

Messages pane of IDE reports:
   [TLIB Error] unexpected char 'D' in command line
when performing a Debug build.
('D' in message changed to 'R' when performing a Release build).

(The particular library I was trying to build was HDF and had 72 .c files).
Workarounds
Go to:

Project | Options | TLib

and enter the page size in decimal, not hex - i.e. 64 instead of 0x0040.
Attachment
48764.zip
Comments

Registered User at 7/16/2007 1:34:58 AM -
See report 48328

Daniel Horn at 7/26/2007 8:40:45 AM -
Problem is not strictly a duplicate of other bug report.

The TLIB error reported can occur even when using default TLIB settings (ie, no change to default page size option).

Leo Siefert at 7/26/2007 9:30:36 AM -
I was able to reproduce the error you report with a simple project, but I want to be sure that I am seeing the same issue you are. When you say this is not a duplicate are you referring to 49116, 48328, or both?

The ide does create the command line incorrectly (incorrect order of parameters), but in some cases TLIB accepts the incorrect command line and in others it does not - adding an invalid page size switch to the command line is one way to get TLIB to issue the error.

Can you attach your entire project to this report, or if not at least supply the command line that raised the error? It is possible that some command line option other than an invalid page size also causes the same error. If this is a separate problem, I'd like to get enough information to open the report separately from the other.

Daniel Horn at 7/31/2007 9:31:10 AM -
This report is a duplicate of neither of 49116 nor 48328.

This TLIB error occurred even without making changes to the pagesize option.

The project that produced this problem was attached to the original bug report.
If you need more than the project file (the .c files), google for "HDF" library for the source.

Server Response from: ETNACODE01