- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
I am trying to add the PeekApp module to a Quickwin program in order to simulate a console buffer to accept unsolicited input.
After I cut/paste the PeekApp code and include the USE PEEKAPPMODULE declaration in my Quickwin main program, I get lots of the following when I compile:
Error: The same named entity from different modules and/or program units cannot be referenced.
Does this have to do with duplicate import libraries in the module and main program?
After I cut/paste the PeekApp code and include the USE PEEKAPPMODULE declaration in my Quickwin main program, I get lots of the following when I compile:
Error: The same named entity from different modules and/or program units cannot be referenced.
Does this have to do with duplicate import libraries in the module and main program?
コピーされたリンク
5 返答(返信)
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
A little more information about what I'm doing. I have a Quickwin main program where I spawn a hidden Fortran console application (using CreateProcess) and use a pair of anonymous pipes to communicate between the console's stdin/stdout and a Quickwin child window. I'm trying to USE the PeekApp module (see the link above for the source code) in my Quickwin main program.
Is there something I'm missing to get this multithreaded Quickwin program to compile? Are any special project settings or import libraries needed?
Is there something I'm missing to get this multithreaded Quickwin program to compile? Are any special project settings or import libraries needed?
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
The error message names an identifier, or points to it. What is it? Is this name declared in any of your sources? The error message is straightforward, you can't have a symbol, say, FOO, declared in modules A and B, USE A and B and then reference FOO, since the reference is ambiguous. The usual solution is to use ONLY or renames clauses on one or more of your USE statements.
Steve
Steve
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
The message is always something like this:
Error: The same named entity from different modules and/or program units cannot be referenced. [CREATEPROCESS]
or
Error: The same named entity from different modules and/or program units cannot be referenced. [CLOSEHANDLE]
or
the same message but with another statement, typically one that uses kernel32.
My program compiles without error when I comment out the USE PEEKAPP statement in the main program. Once I include USE PEEKAPP the error messages occur.
Error: The same named entity from different modules and/or program units cannot be referenced. [CREATEPROCESS]
or
Error: The same named entity from different modules and/or program units cannot be referenced. [CLOSEHANDLE]
or
the same message but with another statement, typically one that uses kernel32.
My program compiles without error when I comment out the USE PEEKAPP statement in the main program. Once I include USE PEEKAPP the error messages occur.
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
The variable names are not the same in the main program as are in the PeekApp module, e.g. my handle names don't match variables declared in PeekApp.
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Steve,
USE PeekAppModule, ONLY: functions needed
worked for me.
Thanks!
USE PeekAppModule, ONLY: functions needed
worked for me.
Thanks!
