Solved

OWL Error

Posted on 1997-05-21
2
331 Views
Last Modified: 2013-12-26
I recently purchased Turbo C++ 3.1 for Windows from Borland (old, I know), and I am trying to teach myself OWL programming, but I keep coming up with these stupid errors, even on those programs that came with the compiler.  It says:

Compiling ..\OWL\EXAMPLES\HELLOAPP.CPP:
Fatal ..\OWL\INCLUDE\OWL.H 40: Error directive: OWL applications must be built with either WIN30 or WIN31 defined.

How can I fix this stupid error which is keeping me from programming in Windows!  Thanks!
0
Comment
Question by:mitchell042997
2 Comments
 
LVL 15

Expert Comment

by:NickRepin
Comment Utility
Are you using make file or IDE project manager?
Try to insert '#define WIN31 1' before include statements with owl headers.
0
 
LVL 3

Accepted Solution

by:
LucHoltkamp earned 100 total points
Comment Utility
You should not define WIN31 ! This is a errorcatch that prohibits you from compiling a windows program in a wrong target.
You have to choose the appropriate target.
You should make a project and then choose Options|Application on the menu. choose the 'Windows App' target.
Good luck,
.luc.

0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Migrating to Exchange 2013 4 39
How to translate path in URL with PHP? 11 31
Technology stack suggestions 4 60
JQuery tracking event. 3 38
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
The viewer will learn how to dynamically set the form action using jQuery.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now