[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

OWL Error

Posted on 1997-05-21
2
Medium Priority
?
339 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 300 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

It's sometimes a bit tricky to use date functions in Oracle BPEL. I'll explain quickly how you can add N days to the current date. In a BPEL process this can be useful, and you can adapt it to fit your needs. First of all, let's see how to add 1 …
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…
The viewer will learn how to dynamically set the form action using jQuery.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Suggested Courses

834 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