- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I was trying to load an initial image on my application that also uses opengl.
The call
res= loadimage("test.bmp",1,1)
gives the following error
Error: The same named entity from different modules and/or program units cannot be referenced. [LOADIMAGE]
C:SBO_50ptsmenus.f90(56) : Error: There is no matching specific function for this generic function reference. [LOADIMAGE]
The option loadimage_w however works fine. I created a separate test application without linking to the opengl libraries and loadimage works now.
I believe that opengl has a similar function named as loadimage that may be conflicting.
If that is the case (I may be wrong) can I request Intel Fortran to change the name of LoadImage to something like Load_Image in DFLIB in the next version.
Also if my starting image (test.bmp) has a resolution more the current screen resolution (1280x1168 original and 1152x864 on my desktop) , the image does not load (display) . What happens when I use a (PROXIMA type) projector for my laptop and the projector screen resolution is lower than my laptop screen resolution. Will it not work?
Thanks for any advice
Sumit
I was trying to load an initial image on my application that also uses opengl.
The call
res= loadimage("test.bmp",1,1)
gives the following error
Error: The same named entity from different modules and/or program units cannot be referenced. [LOADIMAGE]
C:SBO_50ptsmenus.f90(56) : Error: There is no matching specific function for this generic function reference. [LOADIMAGE]
The option loadimage_w however works fine. I created a separate test application without linking to the opengl libraries and loadimage works now.
I believe that opengl has a similar function named as loadimage that may be conflicting.
If that is the case (I may be wrong) can I request Intel Fortran to change the name of LoadImage to something like Load_Image in DFLIB in the next version.
Also if my starting image (test.bmp) has a resolution more the current screen resolution (1280x1168 original and 1152x864 on my desktop) , the image does not load (display) . What happens when I use a (PROXIMA type) projector for my laptop and the projector screen resolution is lower than my laptop screen resolution. Will it not work?
Thanks for any advice
Sumit
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
LOADIMAGE is a routine in DFLIB. If you use DFLIB and another module that defines a routine by the same name, use ONLY or renaming clauses to prevent both names from being visible.
This is the right way to do it - not trying to guess what other packages might name things.
Steve
This is the right way to do it - not trying to guess what other packages might name things.
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Steve!
Any comments about image resolution would be appreciated.
Especially if another application is going to hand me the bitmaps. Any 24bit bitmap would do? (256 colors, 16 colors restrictions?).
Thanks
Any comments about image resolution would be appreciated.
Especially if another application is going to hand me the bitmaps. Any 24bit bitmap would do? (256 colors, 16 colors restrictions?).
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry, can't help with the resolution issue. I have no experience in this area of Windows programming.
Steve
Steve

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page