Welcome, Guest. Please login or register.

Author Topic: StormC compiler, linker loops  (Read 2163 times)

Description:

0 Members and 1 Guest are viewing this topic.

  • Guest
StormC compiler, linker loops
« on: January 22, 2003, 08:40:04 PM »
Hi,

Yes, I''ve got a StormC-compiler. From de ADCD_2.1 develloper CD. So version 3.

The problem is: the linker loops, when:

#include
#include
#include
#include

#include
#include

What is wrong?

Thanks
 

Offline Kronos

  • Resident blue troll
  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 4017
    • Show only replies by Kronos
    • http://www.SteamDraw.de
Re: StormC compiler, linker loops
« Reply #1 on: January 22, 2003, 08:53:01 PM »
Could be the pragma which isn't standardized.

AFAIR pragma is SAS-C whiles pragmas would be StormC
(or is it vice-versa ?).

Better use the clib/xxxxxx_protos.h which should work with all compilers.
1. Make an announcment.
2. Wait a while.
3. Check if it can actually be done.
4. Wait for someone else to do it.
5. Start working on it while giving out hillarious progress-reports.
6. Deny that you have ever announced it
7. Blame someone else
 

  • Guest
Re: StormC compiler, linker loops
« Reply #2 on: January 22, 2003, 09:02:57 PM »
Hi Kronos,

thanks for your early reply

I''ve set up a very small program lately to sort things out. It can be regarded as the sequel to Unix/K&R's famous "Hello world". Well, something like

void main(void)
{
    printf("Bye, bye, Windoze!\n");
}

with only  a handfull of #include-lines:

#include
#include

and that one loops during link-phase!

I''ll try it with your suggestion.

Thanks, and I''ll let you know!
 

Offline iamaboringperson

  • Hero Member
  • *****
  • Join Date: Jun 2002
  • Posts: 5744
    • Show only replies by iamaboringperson
Re: StormC compiler, linker loops
« Reply #3 on: January 22, 2003, 09:04:58 PM »
i dont know,
but i use clib/xxxx_protos.h also
 

  • Guest
Re: StormC compiler, linker loops
« Reply #4 on: January 22, 2003, 09:11:15 PM »
Hi, you boring one

I''ve changed the include-lines to the suggested ones.

They now read

#include
//#include (commented out in C++-style)
#include

and the loop goes on, and the loop goes on!

thanks anyway!
 

  • Guest
Re: StormC compiler, linker loops
« Reply #5 on: January 23, 2003, 06:45:31 PM »
Hi Kronos,

Remember the looping linker of StormC?

ah, silly me! sorry for stealing your time. i found the culprit:

struct Library *DOSBase;

this should be:

struct Library *DosBase;

Never forget this again!

Cheers
 

Offline tonyw

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 553
    • Show only replies by tonyw
Re: StormC compiler, linker loops
« Reply #6 on: January 24, 2003, 05:50:08 AM »
You mean you didn't check the return value from the OpenLibrary() call? Silly boy.

tony
 

  • Guest
Re: StormC compiler, linker loops
« Reply #7 on: January 24, 2003, 06:33:38 PM »
Hi tony,

No, what I meant was: I misspelled the word DosLibrary as DOSLibrary. If you delve into some headerfile you may encounter the word DOSBase. That is what confused the linker.

No. I''m not that stupid. Not to check return-values. phah! Who! Me? No you must be kidding. After nearly thirty years of keeping bits upright, it is a second nature. =8
Cheers
 

Offline tonyw

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 553
    • Show only replies by tonyw
Re: StormC compiler, linker loops
« Reply #8 on: January 24, 2003, 11:14:56 PM »
 :-D