HDTenEightyP/NetNews huggingface dataset:
From: "Stefan Breuer" <UJD9@DKAUNI2.BITNET>
Newsgroups: comp.os.os2.programmer
Subject: compile files separately with emx?
Date: 25 Jan 1993 20:47:45 +0100
Organization: University of Karlsruhe, Germany
Distribution: world

Hello, out there!

Using emx, I am currently writing a program split into two separate
source files. While compiling and linking it, I've experienced a
problem:

When I compile and link it completely in one command, i.e.
gcc -o Prg1.exe Prg1.cc Prg2.cc Prg1.def Prg1.map -Zomf -Zsys
everything works fine. This should be proof that the program itself
and environment variables are OK.

When I try to compile them separately by
gcc -c Prg1.cc
gcc -c Prg2.cc
emxomf -s -mmain -o Prg1.obj Prg1.o
emxomf -s -o Prg2.obj Prg2.o
emxomfld -o Prg1 -s -lc -lgcc -los2 -lsys Prg1.obj Prg2.obj Prg1.def Prg1.map
it just won't run and bleeps at me with an error SYS3175.
Why???? I've been through the docs a dozen times (and yes, I converted
the libs). It doesn't even give me an error message while compiling
and linking, everything looks great!?!?!
I also tried to connect gcc ... and emxomf... by using
gcc -c Prg1.cc -Zomf
but then the linker complains that the program has no starting address
and when I try to start it, only the settings notebook pops up.

I'm desperate! I don't want to compile all the stuff again and again
when I made only a little change in a little module!!!

Thanks for your help,
Stefan


=====================================================================
Stefan Breuer                     |  ujd9@ibm3090.rz.uni-karlsruhe.de
Universitaet Karlsruhe            |            oder / or
University of Karlsruhe, Germany  |       ujd9@dkauni2.bitnet
---------------------------------------------------------------------
                    VIGILIA  PRETIUM  LIBERTATIS
=====================================================================


=====================================================================
Stefan Breuer                     |  ujd9@ibm3090.rz.uni-karlsruhe.de
Universitaet Karlsruhe            |            oder / or
University of Karlsruhe, Germany  |       ujd9@dkauni2.bitnet
---------------------------------------------------------------------
                    VIGILIA  PRETIUM  LIBERTATIS
=====================================================================
From: bip@sekas.de (Paul Bininda)
Newsgroups: comp.os.os2.programmer
Subject: Problems with DosSubFreeMem function call
Date: 28 Jan 93 13:58:39 GMT
Organization: SEKAS, Munich, Germany


A call to DosSubFreeMem sometimes results in error #312: "Overlap of
specified block with a block of allocated memory"

Program description:

    Process 1:                          Process 2:

      .                                    .
      .                                    .
Loop:                               Loop:
{                                   {
    DosSubAllocMem (...);               DosReadQueue (...);
    DosWriteQueue (...);                DosSubFreeMem (...);
}                                   }
      .                                    .
      .                                    .

Address and length of the allocated memory are taken from the result
of DosReadQueue. Memory allocation and writing and reading of the
queue are executed correctly. The error that happens with
DosSubFreeMem is only caused during high call frequency.

Has anyone encountered similar problems and/or knows a solution?

Any help would be greatly appreciated.

Please reply via email, since I am not a regular reader of this news
group.

--
                                          -----  Paul Bininda   
                                          -----  bip@sekas.de

Newsgroups: comp.os.os2.programmer
From: aaa@hpuerca.atl.hp.com (Simon Fowler)
Subject: Re: Long filenames and NMAKE.
Date: Fri, 22 Jan 1993 21:05:06 GMT
Organization: Hewlett-Packard Company, Atlanta GA

In article <1jp9bbINNl19@iskut.ucs.ubc.ca>, duffy@theory.chem.ubc.ca (Pat Duffy) writes:
> Hi Everyone,
> 
> A while ago I posted about problems with long filenames and the make that comes
> with the WorkSet/2 stuff.  Someone suggested that I get the new make from
> hobbes (under .../2.0/programming), which I did.
> 
> Invocation of <NMAKE.EXE> begins 
> Invocation string:  /f SYSTEM.MAK 
>  
> Microsoft (R) Program Maintenance Utility   Version 1.01 
> Copyright (c) Microsoft Corp 1988-1989. All rights reserved. 

Here is the problem - you are not using the CSet/2 nmake. Check your path variable to
make sure that you are picking up the correct NMAKE.EXE


simon
From: lansche@torolab6.VNET.IBM.COM (Martin Lansche)
Date: Thu, 28 Jan 93 12:44:47 EST
Newsgroups: comp.os.os2.programmer
Subject: Re: Good Book for OS/2 Programming
Disclaimer: This posting represents the poster's views, not those of IBM
News-Software: UReply 3.0
            <sal8.330.728113240@po.cwru.edu>

In <sal8.330.728113240@po.cwru.edu> Steve Luzynski writes:
>In article <C1HJL7.9IB@ecf.toronto.edu> weisber@ecf.toronto.edu (WEISBERG ELLIOT) writes:
>>From: weisber@ecf.toronto.edu (WEISBERG ELLIOT)
>>Subject: Good Book for OS/2 Programming
>>Date: Tue, 26 Jan 1993 23:51:06 GMT
>>What is a good book for programming OS/2??  I saw the Microsoft
>>book titled Notebook or something, but it looked like it did not
>>have much substance.  Thanks.
>>
>If you're wanting a book on Presentation Manager programming, the best one
>is still "Programming the OS/2 Presentation Manager" by Charles Petzhold -
>published by Microsoft Press.
>
>The new Van Nostrum Reinhold book "Presentation Manager by Example" or some
>thing like that is $40 and only around 100 pages where the above book is a
>hefty 820+ pages for $29.95.

I personally swear by Dror & Lafore's "OS/2 Presentation Manager Programming
Primer" (ISBN:0-07-881467-7  Pub: McGraw Hill).  It is for OS/2 1.2, but when
complimented by the Knight book, it is very good.  I didn't like the Petzold
book, and besides, trying to find a copy of an OS/2 book published by
Microsoft Press is said to be like trying to suck water from a stone.

Check out the Dror and Lafore text.
Cheers,
Martin Lansche, IBM PRGS Toronto Lab, Canada
  ________________________________________________________________________
   Ilu Iluvatar en kare eldain a firimoin ar antarota mannar valion :
   numessier.  Toi aina, mana, meldielto -- enga morion : talantie.
   ----------------------------------------------------------------------
   The father made the world for elves and mortals and he gave it into
   the hands of the Lords in the West.  They are blessed, holy and loved,
   except the black one.  He has fallen.  (J.R.R. Tolkien).
  ________________________________________________________________________
From: jschief@finbol.toppoint.de (Joerg Schlaeger)
Newsgroups: comp.os.os2.programmer
Subject: Re: Programming OS/2 and PM <--> DOS and WINDOWS
Distribution: world
Date: Mon, 25 Jan 93 12:26:36 GMT
Organization: myself

tpo@dde.dk writes in article <1993Jan22.094925.18584@dde.dk>:
> 
> I have done a lot of C-programming. Mostly UNIX, but allso DOS and
> WINDOWS. 
> 
> Now I have now started to drop DOS and go for OS/2.
> I have got hold on emx/gcc but I need some references to 
> the OS/2 and PM  API. Emx/gcc contain alot of docs for the standard
> C routines, but I have seen nothing about the PM API. 
> 
> Any good books about theese subjects ?
> Any kind of electronical API documentation availably on ftp ?
> 
> Anything will help.
> 
> Thomas
> E-mail: tpo@dde.dk
> -- 
> |      |   |       |********************************************************
> |    __| __| __    | Thomas P.S. Olesen 
> |   /  |/  |/__>   | Dansk Data Elektronik A/S  -   Kernel development group
> |   \__/\__/\__    | Email: tpo@dde.dk 
> 
Hello,
there are 3 Disks called technical library I think they
include first help on most OS/2 develop Problems,
I don't know where to get by FTP,

I became my from:

VC.S.
Forststr. 53
7000 Stuttgart 1
West-Germany

Tel.: ++49 711 621832
Fax.: ..... 621843

Discription:
IBM OS/2 Technical Library
Price : 10.50 DM + p.p.

Bis denn
Joerg
--
+++++++++++++++++++++++++++++++++++
Joerg Schlaeger
Home: +49 431 682210 (voice & fax & ...)
jschief@finbol.toppoint.de
----------------------------------------------------------------------
(to be faster with the /2)
+++++++++++++++++++++++++++++++++++
From: tcf9033@venus.tamu.edu (FREY, TONY C)
Newsgroups: comp.os.os2.programmer
Subject: Writing modules for Deskpic, how?
Date: 24 Jan 93 19:20:00 GMT
Organization: Texas A&M University, Academic Computing Services
NNTP-Posting-Host: venus.tamu.edu
News-Software: VAX/VMS VNEWS 1.41


 I would like to write some modules for Deskpic (screen saver) but have
been unable to find any code or documentation on how to do this. Anyone
know where I could find this information? Thanks.

TCF9033@venus.tamu.edu
Tony Frey
Texas A&M University
Newsgroups: comp.os.os2.programmer
From: romanf@glance.ch (Roman Fischer)
Subject: Solved: Nasty Bitmaps
Reply-To: rofische@iiic.ethz.ch (Roman Fischer)
Organization: Glance Ltd
Date: Thu, 21 Jan 93 10:34:44 GMT

Re-Hi

if i'd RTFM (Programming-Guide Vol. III)...
"... each scan line, however, is padded at the end so that each line
begins on a ULONG (32-bit) boundary..."

Thx to Martin.


Regards           Roman
From: margoli@watson.ibm.com (Larry Margolis)
Newsgroups: comp.os.os2.programmer
Subject: Re: compiling macros for EPM ?
Date: 28 Jan 93 07:40:30 GMT
Reply-To: margoli@watson.IBM.com
Organization: The Village Waterbed
News-Software: IBM OS/2 PM RN (NR/2) v0.16f by O. Vishnepolsky and R. Rogers
Disclaimer: This posting represents the poster's views, not necessarily those of IBM

In <1993Jan26.075144.5818@ugle.unit.no> kvien@Elkraft.Unit.NO (Oddgeir Kvien) writes:
>Thnx I found it on watson. But there is some problem. When I try to
>recompile EPM (ETPM EPM)  an errormessage comes upp:
>
>EX code size too large

That's described in the readme file in with the macros files.
--
Larry Margolis, MARGOLI@YKTVMV (Bitnet), margoli@watson.IBM.com (Internet)
From: rcmerrit@apgea.army.mil (Robert C. Merritt <rcmerrit>)
Newsgroups: comp.os.os2.programmer
Subject: basic
Date: 26 Jan 93 21:06:37 GMT
Organization: APG-Edgewood


ok, sincce there doesn't appear to be an os/2 version of basic or pascal,
and since I refuse to work in C, 

how can I take my dos basic or pascal complier and make programs that are
os/2 and/or PM friendly?

Rob Merritt
Newsgroups: comp.os.os2.programmer
From: nbl@solomon.technet.sg (Ng Beng Lim)
Subject: Printing problem of HPLJ3. Urgent
X-Newsreader: TIN [version 1.1 PL8]
Date: Thu, 28 Jan 1993 21:45:18 GMT



--

==================================================================
Ng Beng Lim                       IDEMail:      NBL@MOEHQ
Computer Services Branch          Bitnet:       BENGLIM@ITIVAX
Ministry of Education             Internet:     nbl@solomon.technet.sg
Kay Siang Road                    Fax:          (65)-473-7513
Singapore 1024
===========================
From: sal8@po.cwru.edu (Steve Luzynski)
Newsgroups: comp.os.os2.programmer
Subject: OS/2 Developer's Electronic Magazine
Date: Thu, 21 Jan 1993 06:59:50 GMT
Organization: Case Western Reserve University
NNTP-Posting-Host: b61442.student.cwru.edu
Keywords: OS/2, developers, programmers, magazine, source

Due to the pleasing response I got from my initial posting, I've decided to 
go ahead and begin work on a (hopefully) monthly electronic magazine for 
OS/2 developers. 

So, what I need is this: articles. I will be privately contacting people via 
e-mail who have already responded either on the group or by mail to myself, 
but anyone else is more than welcome to volunteer. :)

So, if you have an idea, please email me (to keep this group's traffic down) 
and I'll make sure no one else has already submitted the same thing. I'm 
also open to requests for articles/features/etc. I hope to release issue #1 
by mid to late February at the latest, so get those submissions in!

I'm also taking suggestions for: a) a cool title, since the subject of this 
message would be way too unwieldly; and b) votes for either .txt or .inf 
format (or both for that matter.)

The best title idea I've come up with so far is "OS/2 Programmer's Monthly" 
since the initials make for an interesting play on words (OS/2 PM). My only 
real problem with it is that it will be silly if I don't get one out every 
month. :)

Thanks to all for their interest, and I hope to be speaking to you again 
with my 'editor' hat on real soon.

--Steve Luzynski
----------------------------------------------------------------------------
steve luzynski @ case western reserve university in cleveland, oh
sal8@po.cwru.edu  | voice calls testily accepted at x2153.
----------------------------------------------------------------------------
while writing this post with a dos newsreader, i played a modfile in the
background, compiled a 32bit presentation manager application, and printed
a 1.4 meg postscript document. try doing that in windows.
----------------------------------------------------------------------------
OS/2 developer and user. got an idea? mail it in, i'm bored.
From: lopes@cogsci.ucsd.EDU (alann lopes)
Newsgroups: comp.os.os2.programmer
Subject: P2C and emx/gcc -- some questions
Keywords: P2C emx/gcc
Date: 27 Jan 93 16:35:48 GMT
Organization: University of California, San Diego

Hi, I'm in the process of converting a few thousand lines
of Turbo Pascal code to c using the P2C translator with
the emx/gcc as the target compiler. Much of the code compiles
fine, but in the process of linking (I think!), I get errors
saying that functions like gotoxy, readkey, etc., are not defined.

I'm linking to libp2c.a and expected these functions to be
implemented in this library. Are these functions not available
in this translation package? Do I have to go in and change these
functions to their c equivalent?

If anyone can give me a hint about how to do this, I'd
truly appreciate it. I just don't want to start replacing
them by hand and then find that there was some problem with
the way I'm doing things and that I've wasted precious time.

Thanks very much for any help -- alann


   alann lopes:        alopes@ucsd.edu       -- internet
   (619) 534-5438      ALOPES@UCSD           -- bitnet


Below is an Turbo Pascal example, the translated code
and the error messages from the compiler/linker:

-------------------------------------------------------------------------------
Pascal code test program
-------------------------------------------------------------------------------
Program test1;

Uses CRT;

Var
 dch : char;

Begin

gotoxy(10,20);
writeln("Hello World");
dch = readkey;
clrscr;

End.

-------------------------------------------------------------------------------
Translated code output from p2c
-------------------------------------------------------------------------------

/* Output from p2c, the Pascal-to-C translator */
/* From input file "test1.pas" */
/* p2c: D:\EMX\P2C/system.imp, line 10: Warning: Symbol 'SYSTEM' was already defined [220]
 * Warning: Symbol 'SYSTEM' was already defined [220] */


#include <p2c.h>


main(int argc, Char *argv[])
{
  Char dch;

  PASCAL_MAIN(argc, argv);
  gotoxy(10, 20);
  printf("Hello World\n");
  ReadKey();
  ClrScr();

  exit(EXIT_SUCCESS);
}



/* End. */


-------------------------------------------------------------------------------
Messages from p2c during translation
-------------------------------------------------------------------------------
[D:\emx\p2c\rawan]p2c -LTURBO test1.pas 
D:\EMX\P2C/system.imp, line 10/2: Warning: Symbol 'SYSTEM' was already defined [220]
Reading import text for "printer"
Reading import text for "dos"
Reading import text for "crt"
Reading import text for "graph"
test1

-------------------------------------------------------------------------------
Messages from gcc during compilation
-------------------------------------------------------------------------------
[D:\emx\p2c\rawan]gcc -o test1.exe -O2 test1.c -lp2c 

./ccc00833: Undefined symbol _gotoxy referenced from text segment
./ccc00833: Undefined symbol _ReadKey referenced from text segment
./ccc00833: Undefined symbol _ClrScr referenced from text segment



Newsgroups: comp.os.os2.programmer
From: jwidman@whsun1.whoi.edu (James Widman)
Subject: Re: compiling macros for EPM ?
Organization: NOAA-NMFS
Date: Tue, 26 Jan 93 13:18:59 GMT

In article <1993Jan26.075144.5818@ugle.unit.no> kvien@Elkraft.Unit.NO (Oddgeir Kvien) writes:
>In article <1993Jan25.164543.4845@gandalf.UMCS.Maine.EDU>, jurlwin@gandalf.UMCS.Maine.EDU (Jeff Urlwin) writes:
>|> In article <1993Jan25.004628.22259@watson.ibm.com> margoli@watson.IBM.com writes:
>|> >In <1993Jan24.181508.24311@ugle.unit.no> kvien@Elkraft.Unit.NO (Oddgeir Kvien) writes:
>|> >>How do you compile macros for EPM?
>|> >>
>|> >>I can not find it in anny documentation.
>|> >
>|> >Compiling macros refers to using ETPM to compile .e macros into .ex files.
>|> >ETPM was not shipped with OS/2, but is available in the EPMBBS package on
>|> >the IBM OS/2 BBS's, Compuserv, and via anonymous FTP (from
>|> >software.watson.IBM.com and other sites).  This has nothing to do with Rexx
>|> >macros.
>|> >
>|> >The above package includes an online user's guide and tech. ref.  For more
>|> >information on ETPM, get EPMDOC.ZIP, unpack it, then enter the command:
>|> >   view epmusers etpm
>|> 
>|> It's also on the 11/92 PDK CDROM...
>|> 
>|> Jeff
>|> 
>Thnx I found it on watson. But there is some problem. When I try to 
>recompile EPM (ETPM EPM)  an errormessage comes upp:
>
>EX code size too large
>   buffer_handle=SORT_find_buffer(DLLSORT0)
>
>filename=sortDLL.e
>line= 29
>col= 34
>
>I don`t know anything about the epm macro language so.........
>
>What I want is just to change the behaviour of epm while I am editing a
>*.c file. I don`t like the plasement of the { and }. I want them to be plased
>on the next (or previous) line and not on the same line as if and else an so on.
>So I have just done some minor changes in the ckeys file (I think that was the
>name of the file).
>
>
>Regards 
>
>Oddgeir 
    I have had exactly the same problem.  I was just trying to change the
    cursor color,  when that error popped up.

    Anyone with any ideas???

                   Thanks in advance   Jim Widman
From: jcburt@gatsibm.larc.nasa.gov ()
Newsgroups: comp.os.os2.programmer
Subject: Re: Cset/2 libraries and ANSI
Date: 21 Jan 1993 17:12:23 GMT
Organization: NASA Langley Research Center
NNTP-Posting-Host: gatsibm.larc.nasa.gov

In article <19930120.073423.677@almaden.ibm.com> dmm@vnet.ibm.com (Dave Mooney) writes:
>In <1993Jan20.134902.1090@ludd.luth.se> Bjorn Fahller writes:
>>                 Lookup sprintf in the doc's just to find that contrary
>> to anything else I've ever seen, it returns an integer telling how many
>> characters was put into the buffer, instead of the pointer to it.
>> Why is this? Or is it so that all other libraries I've seen are not
>> ANSI conformant, and that what I've always thought to be ANSI isn't?
>> What more such surprices are there?
>
>sprintf() has returned an integer ever since the earth cooled.  You are
>perhaps confusing it with the strxxx() routines, which often return a
>pointer to the string they have just manipulated?  In order to avoid
>surprises like this, I recommend that you always include prototypes for
>the functions you are using (by #include-ing the appropriate headers)
>and compiling with -Kb.
>
>dave
>
Dave, 
 Perhaps in your world sprintf() returns an integer, but on the SUN
things are a bit different...and I quote (from SUN man page)

PRINTF(3S)           STANDARD I/O FUNCTIONS            PRINTF(3S)

NAME
     printf, fprintf, sprintf - formatted output conversion

SYNOPSIS
     #include <stdio.h>
     int printf(format [ , arg ] ... )
     char *format;

     int fprintf(stream, format [ , arg ] ... )
     FILE *stream;
     char *format;

     char *sprintf(s, format [ , arg ] ... )
     char *s, *format;

hmmm...seems like sprintf returns a character pointer just like the
original poster was saying...and people wonder why porting software
is such a *fun* task...:-)

John


Newsgroups: comp.os.os2.programmer
From: assela@rs6111.ecs.rpi.edu (A. Andre Asselin)
Subject: Re: Borland C++: what a dog.
Date: Fri, 22 Jan 1993 01:19:26 GMT

cfortier@genghis.news (Chris Fortier) writes:
>world's problems.  This is a first generation product.  If you remember,
>Borland did not have a framework for Windows until Borland C++ 3.0, 9 months
>after their first generation Windows product, Borland C++ 2.0.  The cold hard

Actually, OWL WAS included in BC++ 2.0.  

  - Andre Asselin  (assela@rpi.edu)
From: css0860@sigma.tamu.edu (Skelter)
Newsgroups: comp.os.os2.programmer
Subject: How to communicate between two programs
Date: 23 Jan 1993 14:55 CST
Organization: Texas A&M University, Academic Computing Services
Distribution: world
NNTP-Posting-Host: sigma.tamu.edu
News-Software: VAX/VMS VNEWS 1.41    

How would you allow two programs to actively communicate with
each other like you were going to write a program that was a game
server and another that was a client.

-s
From: oliver@coombs.anu.edu.au (Oliver White)
Newsgroups: comp.os.os2.programmer
Subject: GNU Make 3.6.2 - Why must I press two keys for each target?
Date: 27 Jan 93 08:35:00 GMT
Organization: Australian National University
NNTP-Posting-Host: 150.203.76.2

I am using GNU Make from gnumk362.zip, and when I do a make, it pauses
after making each target, and doesn't continue until I give it two keypresses!
Why is it so?

 - Oliver.
From: sal8@po.cwru.edu (Steve Luzynski)
Newsgroups: comp.os.os2.programmer
Subject: Re: emx and gcc
Date: Wed, 27 Jan 1993 22:42:46 GMT
Organization: Case Western Reserve University
NNTP-Posting-Host: b61442.student.cwru.edu
Keywords: emx and gcc

In article <63775@mimsy.umd.edu> pr@umiacs.umd.edu (Jesus M. Rodriguez) writes:
>From: pr@umiacs.umd.edu (Jesus M. Rodriguez)
>Subject: emx and gcc
>Keywords: emx and gcc
>Date: 27 Jan 93 19:37:35 GMT
>
>
>What is the difference between gcc and emx?  I noticed that gcc has more 
>header files including the os2incl ones i.e. pmbitmap.h, etc.
>
>Which is better?
>
>Can the headers from gcc2-222 be used with emx0.8f?

emx includes support for a debugger, PM (so you don't want to use those gcc 
headers), faster floating point math, facilities for creating bound execs 
(that run under Dos _and_ OS/2), an assembler, text & graphics libraries, 
and other various goodies. It also makes smaller executables if you use 
emx.dll.

----------------------------------------------------------------------------
steve luzynski @ case western reserve university in cleveland, oh
sal8@po.cwru.edu  | voice calls testily accepted at x2153.
----------------------------------------------------------------------------
Editor - OS/2 Programmer's Magazine.  Watch for it!
----------------------------------------------------------------------------
OS/2 developer and user. got an idea? mail it in!
From: dmm@vnet.ibm.com (Dave Mooney)
Date: Mon, 25 Jan 93 10:34:24 EST
Newsgroups: comp.os.os2.programmer
Subject: Re: Strange Compile time Error Message
Organization: IBM Canada Lab
News-Software: UReply 3.0

In <C1E4ry.98v@bandelier.cs.unm.edu> Justin Seiferth writes:
> All of the sudden, the November release of the C++ compiler refuses
> to compile anything.  It terminates during compilation with the
> following:
>
> test.C (0) : fatal error EDC4019: Error occurred while opening intermediate file
>  RBCOMM(395).
>
> It had been working fine.  I cannot think what might have suddenly caused
> this behaviour.  I intend to reinstall the development kit and see what
> happens, however I would like to know what the error means so I can prevent
> whatever happened from happening again.

That means that the second phase of the compiler can't find the
intermediate files left behind by the first phase.  Check your TMP
environment variable to ensure that it points to a valid directory, and
doesn't have garbage (like spaces or semicolons) at the end of it.

This message should never appear, btw.  I'll see why it is appearing now,
and how to make it stop. :-)

dave