.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Cyborg Factory > RealBot > The RealBot 'Source'
The RealBot 'Source' Discuss things about the source code. You can here point out bugs, share ideas and code. Assign to become an 'official team member' and so on!

Reply
 
Thread Tools
File missing: LIBGEN.H
Old
  (#1)
dstruct2k
 
dstruct2k's Avatar
 
Status: Offline
Posts: 225
Join Date: Feb 2004
Default File missing: LIBGEN.H - 09-07-2004

It's an include in the "Bsp2Rbn" package, anyone know where a Win32 user can get a copy of LIBGEN.H?
  
Reply With Quote
Re: File missing: LIBGEN.H
Old
  (#2)
dstruct2k
 
dstruct2k's Avatar
 
Status: Offline
Posts: 225
Join Date: Feb 2004
Default Re: File missing: LIBGEN.H - 09-07-2004

As far as I can tell in the code, all it's needed for is dirname+basename... Is there any win32 include that has these?

EDIT:
There isn't... Can someone attach libgen.h?

Last edited by dstruct2k; 09-07-2004 at 02:14..
  
Reply With Quote
Re: File missing: LIBGEN.H
Old
  (#3)
Josh_Borke
Member
 
Status: Offline
Posts: 152
Join Date: Jun 2004
Default Re: File missing: LIBGEN.H - 09-07-2004

libgen.h is included to provide dirname/basename which is used to get the map name from your arguments. It is provided below
Code:
/* Copyright (C) 1996, 1997, 1999, 2000 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.
 
    The GNU C Library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    Lesser General Public License for more details.
 
    You should have received a copy of the GNU Lesser General Public
    License along with the GNU C Library; if not, write to the Free
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
    02111-1307 USA.  */
 
 #ifndef _LIBGEN_H
 #define _LIBGEN_H 1
 
 #include <features.h>
 
 __BEGIN_DECLS
 
 /* Return directory part of PATH or "." if none is available.  */
 extern char *dirname (char *__path) __THROW;
 
 /* Return final component of PATH.
 
    This is the weird XPG version of this function.  It sometimes will
    modify its argument.  Therefore we normally use the GNU version (in
    <string.h>) and only if this header is included make the XPG
    version available under the real name.  */
 extern char *__xpg_basename (char *__path) __THROW;
 #define basename  __xpg_basename
 
 __END_DECLS
 
 #endif /* libgen.h */
don't know that it will do you any good though...
  
Reply With Quote
Re: File missing: LIBGEN.H
Old
  (#4)
dstruct2k
 
dstruct2k's Avatar
 
Status: Offline
Posts: 225
Join Date: Feb 2004
Default Re: File missing: LIBGEN.H - 09-07-2004

Features.h... lol

Know what? Nevermind.

I'll just wait until Stefan alters this to be Win32 compatable.

Last edited by dstruct2k; 09-07-2004 at 03:09..
  
Reply With Quote
Re: File missing: LIBGEN.H
Old
  (#5)
evy
Guest
 
Status:
Posts: n/a
Default Re: File missing: LIBGEN.H - 09-07-2004

Quote:
Originally Posted by dstruct2k
Features.h... lol

Know what? Nevermind.

I'll just wait until Stefan alters this to be Win32 compatable.
Humm... I'm afraid that I'll have to write some functions in util.cpp for WIN32 people

If someone knows C++ code for basename & dirname, please let me know

-eric
  
Reply With Quote
Re: File missing: LIBGEN.H
Old
  (#6)
dstruct2k
 
dstruct2k's Avatar
 
Status: Offline
Posts: 225
Join Date: Feb 2004
Default Re: File missing: LIBGEN.H - 09-07-2004

Give me an hour... I'll find somethng.
  
Reply With Quote
Re: File missing: LIBGEN.H
Old
  (#7)
dstruct2k
 
dstruct2k's Avatar
 
Status: Offline
Posts: 225
Join Date: Feb 2004
Default Re: File missing: LIBGEN.H - 09-07-2004

And still... Nothing. The only hint/suggestion I got was to search msdn.microsoft.com
  
Reply With Quote
Re: File missing: LIBGEN.H
Old
  (#8)
Josh_Borke
Member
 
Status: Offline
Posts: 152
Join Date: Jun 2004
Default Re: File missing: LIBGEN.H - 09-07-2004

it's only used for path detection right? to get it for windows quickly, you could just require that the file be in the same directory as the executable and negate that requirement...
  
Reply With Quote
Re: File missing: LIBGEN.H
Old
  (#9)
dstruct2k
 
dstruct2k's Avatar
 
Status: Offline
Posts: 225
Join Date: Feb 2004
Default Re: File missing: LIBGEN.H - 10-07-2004

I'll give that a try...


So this package will generate an EXE file? I assumed it was another DLL for metamod.
  
Reply With Quote
Re: File missing: LIBGEN.H
Old
  (#10)
dstruct2k
 
dstruct2k's Avatar
 
Status: Offline
Posts: 225
Join Date: Feb 2004
Default Re: File missing: LIBGEN.H - 10-07-2004

Here's the output after attempting to remove basename and dirname from the code:

Code:
--------------------Configuration: Bsp2Rbn - Win32 Debug--------------------
Compiling...
Bsp2Rbn.cpp
bsp2rbn.cpp(226) : warning C4101: 'NextVertex' : unreferenced local variable
bsp2rbn.cpp(316) : warning C4101: 'v' : unreferenced local variable
bsp2rbn.cpp(317) : warning C4101: 'v_temp' : unreferenced local variable
bsp2rbn.cpp(317) : warning C4101: 'intersect_point' : unreferenced local variable
util.cpp
bsp2rbn.cpp(320) : warning C4700: local variable 'z_height' used without having been initialized
bsp2rbn.cpp(757) : warning C4715: 'main' : not all control paths return a value
util.cpp(541) : warning C4101: 'temp2' : unreferenced local variable
Linking...
Bsp2Rbn.obj : error LNK2001: unresolved external symbol "public: int __thiscall cNodeMachine::add(class Vector,int,struct edict_s *)" (?add@cNodeMachine@@QAEHVVector@@HPAUedict_s@@@Z)
Bsp2Rbn.obj : error LNK2001: unresolved external symbol "public: void __thiscall cNodeMachine::experience_save(void)" (?experience_save@cNodeMachine@@QAEXXZ)
Bsp2Rbn.obj : error LNK2001: unresolved external symbol "public: void __thiscall cNodeMachine::save(void)" (?save@cNodeMachine@@QAEXXZ)
Bsp2Rbn.obj : error LNK2001: unresolved external symbol "public: void __thiscall cNodeMachine::Draw(void)" (?Draw@cNodeMachine@@QAEXXZ)
Bsp2Rbn.obj : error LNK2001: unresolved external symbol "public: void __thiscall cNodeMachine::init(void)" (?init@cNodeMachine@@QAEXXZ)
cmdlib.obj : error LNK2001: unresolved external symbol "bool isWindowsApp" (?isWindowsApp@@3_NA)
util.obj : error LNK2001: unresolved external symbol "bool __cdecl FUNC_BotHoldsZoomWeapon(class cBot *)" (?FUNC_BotHoldsZoomWeapon@@YA_NPAVcBot@@@Z)
util.obj : error LNK2001: unresolved external symbol "bool __cdecl FUNC_IsOnLadder(struct edict_s *)" (?FUNC_IsOnLadder@@YA_NPAUedict_s@@@Z)
Debug/Bsp2Rbn.exe : fatal error LNK1120: 8 unresolved externals
Error executing link.exe.

Bsp2Rbn.exe - 9 error(s), 7 warning(s)

Last edited by dstruct2k; 10-07-2004 at 06:14..
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com