Solved

OWL Error

Posted on 1997-05-21
2
334 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
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

770 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