Quantcast
Channel: Baanboard.com
Viewing all articles
Browse latest Browse all 4216

external variable visibility cross process dll-s

$
0
0
hello,
according documentation, it is specified that variable, defined as "external" inside one dll (general library) is visible to all dll-s inside same process. After testing, I can't get "global" variable in one dll to be accessed in another dll.

Example is as follows(2 general library dll-s)

library.1:
Code:

external domain tcitem ext.item.1  | Global variable definition in first dll

function extern string fnc.1(){
  return(ext.item.1)
}

library.2:
Code:

#pragma used dll olibrary.1

function extern string fnc.2(){
  return(ext.item.1)                      | "usage" of global variable from first dll, compiler generates an error "Error: "ext.item.1" not declared"
}

looks like compiler doesn't "include" external symbols from library.1. Is there any special "convention" to define global(cross dll) variables?

Rgds, Frenk

Viewing all articles
Browse latest Browse all 4216

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>