bugGNUstep - Bugs: bug #14915, gnustep_base_version variable...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #14915: gnustep_base_version variable appears inaccessable in windows

Submitted by:  Matthew Jimenez <mjimenez>
Submitted on:  Fri 04 Nov 2005 05:52:17 PM UTC  
 
Category: Base/FoundationSeverity: 3 - Normal
Item Group: BugStatus: Works For Me
Privacy: PublicAssigned to: None
Open/Closed: Closed

Fri 11 Nov 2005 02:29:23 PM UTC, comment #1:

I've added a line to test this near the start of main() in base/testing/basic.m

I've also tweaked the declaration in preface.m to be char* rather than char[]

Anyway, it works for me with the current code in CVS (make and base) and the came compiler version. Please give it a go ... see if the usage in basic.m works for you, and if there are still problems, perhaps we can reopen this.

Richard Frith-Macdonald <CaS>
Project Member
Fri 04 Nov 2005 05:52:17 PM UTC, original submission:

I'm having trouble accessing the gnustep_base_version variable in preface.m under my win32/msys environment.
I have a feeling the compiler is not exporting the variables as expected in the dll.

I'm trying this simply to display the dll version along side my app's version number - mostly to ensure my users aren't accidentally using the wrong version of the library.

Compiled with gcc version 3.4.2 (mingw-special)

I've tried declaring the variable as "__declspec(dllimport) extern const char * gnustep_base_version" and "extern const char * gnustep_base_version" with no luck. Maybe I'm missing something obvious.

However, it might be a bit nicer to return this variable with a simple function.

Any thoughts?

Matthew Jimenez <mjimenez>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Fri 11 Nov 2005 02:29:23 PM UTCCaSStatusNone=>Works For Me
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1