Solved

OWL Error

Posted on 1997-05-21
2
336 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 15

Expert Comment

by:NickRepin
ID: 1299210
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
ID: 1299211
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

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Shoutout to Emily Plummer (http://www.experts-exchange.com/members/eplummer26.html) for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
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 if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

728 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