TLIB Error Unexpected character '?' in command line

By: Vincent Drake

Abstract: Quick resolution for this vexing problem


When compiling a library project with C++Builder 5, I get an error message from TLIB reading, "Unexpected character '?' in command line". How do I resolve this problem?


If your project has special characters or spaces in its path, you you will encounter this problem. There is a bug in the IDE that seems to strip quote characters from filenames in the command line used to invoke TLIB. Spaces or special characters confuse TLIB when they are not surrounded by quotes.

To resolve this problem, either rename the directories so that they do not include spaces and special characters, or export a makefile for the project (using Project/Export Makefile... from the main menu) and build the library from the command line using MAKE.

Server Response from: ETNASC04