From: | |
Date: | 26 Feb 2001 at 10:34:17 |
Subject: | FW: Re: iff.library |
>> Yes, exactly, I am trying to display iff picture and I try
>> iff.library and guigfx.library and there is linker error "cannot
>> found IFFBase: hint _main" respective GuiGFXBase.
>> So I guess that i will got this error with every library that is not
>> included in amigaOS.
>This error is occuring sincce you do not open the libraries in your
>code. You are assuming the compiler will do this for you, which it
>does for some OS libs, but I think this is bad practice.
>To fix the problem you need
>struct Library *IFFBase;
>and then in the begining of your code you need,
>IFFBase = OpenLibrary("iff.library, 37L);
>and at the end a
>CloseLibrary(IFFBase);
These lines are already included in my source code, i never use auto-open
feature.
The problem is: when i open and close library in my code, compilation is ok,
but when i try to use some function from this library, linker fails.
>This should fix the problem.
>BTW why not use datatypes to load the image?
Because I'm currently learning to program Amiga in C, if using datatypes is
easier than using loading function from iff.library I'll do it.
Filip
>Shinda
------------------------ Yahoo! Groups Sponsor ---------------------~-~>
eGroups is now Yahoo! Groups
Click here for more details
http://us.click.yahoo.com/kWP7PD/pYNCAA/4ihDAA/d8AVlB/TM
---------------------------------------------------------------------_->
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/