Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Turbo C++ 4.5 error "undefined symbol owlmain..."

Tags:

c++

turbo-c++

I know Turbo C++ is ancient, but my daughter's school uses it, and I have to help her.

I am using Turbo C++ 4.5 in a Windows 7 Virtual Machine, which is running inside Windows 8.1.

For any project, when clicking "Build all", it gives the error:

"Undefined symbol OwlMain (int, char far*, far*) in library file c:\tcwin45\lib\owlwi.lib in module winmain"

I even created a new project with just one source file with the minimal code as follows:

void main () {
    // return;
}

Even then, I get the same error as above.

I don't understand the reason for this error. Any help will be highly appreciated.

like image 745
Pradyumn Avatar asked Oct 01 '14 12:10

Pradyumn


1 Answers

It appears that you are pulling in the OWL library (a library for creating GUIs). This probably means that you created your project with the wrong type. You need a simple, bare-bones console project.

Also, your school is doing your daughter a massive disservice by teaching outdated technology and (probably) methods. C++ has changed a lot since that compiler, and so the material she learns will only be partially applicable in the real world. You should consider raising a complaint.

like image 59
Sebastian Redl Avatar answered Oct 06 '22 01:10

Sebastian Redl