Jump to content

Error de compilacion


linkineox

Recommended Posts


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  30
  • Reputation:   0
  • Joined:  12/03/13
  • Last Seen:  

Hola, lo que sucede es que puse lo src que pedian actualizacion para el post balance,

 

copie y reemplaze en mi servidor.

 

Todo bien excepto que las armas no hacian nada ._.

 

luego cambie el item_db e hize reload

 

luego de eso desaparecieron unos items de la cuenta de mi amigo que me audaba a testiar con cuenta de user normal.

asi que decidi reiniciar el servidor por si aparecian (items del storage)  la cosa es que no arranco mas el server. no compilo nada.

 

solo salen estos errores

 

 

char.c:4: error: expected identifier or ‘(’ before ‘<’ token
char.c:7:19: warning: character constant too long for its type
char.c:9: error: stray ‘\267’ in program
char.c:9: error: stray ‘\267’ in program
char.c:50:39: warning: character constant too long for its type
char.c:50:56: warning: character constant too long for its type
char.c:220:25: warning: character constant too long for its type
char.c:314:46: error: invalid suffix "a26464853a6ecf27f9c7e7595d498" on integer constant
char.c:399:17: warning: character constant too long for its type
char.c:405: error: stray ‘\205’ in program
char.c:6545:70: warning: multi-character character constant
char.c:6545:80: warning: multi-character character constant
char.c:6589: error: expected identifier or ‘(’ before numeric constant
make[1]: *** [obj_sql/char.o] Error 1
make[1]: Leaving directory `/home/zeus/ragnarok/src/char'
make: *** [char] Error 2
 
 
Edited by linkineox
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  177
  • Topics Per Day:  0.04
  • Content Count:  909
  • Reputation:   247
  • Joined:  11/08/11
  • Last Seen:  

¿Tienes modificaciones en el SRC?

Si actualizas el emulador pero no recompilas todo pueden darte errores o bien que no se se actualizo correctamente.
Antes de actualizar apaga el servidor completamente.
Pero me parece extraño que sino no tienes modificaciones en el SRC te de errores actualice ayer el rAthena y me recompilo perfecto y eso que tengo modificaciones en el src.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  30
  • Reputation:   0
  • Joined:  12/03/13
  • Last Seen:  

No entiendo :/ no tengo modificaciones creo...

 

char.c: In function ‘bonus_script_get’:
char.c:5240: error: ‘struct bonus_script_data’ has no member named ‘icon’
char.c: In function ‘bonus_script_save’:
char.c:5286: error: ‘struct bonus_script_data’ has no member named ‘icon’
char.c: In function ‘char_config_read’:
char.c:5843: error: invalid application of ‘sizeof’ to incomplete type ‘char[]’
make[1]: *** [obj_sql/char.o] Error 1
make[1]: Leaving directory `/home/zeus/ragnarok/src/char'
make: *** [char] Error 2
 
Eso es lo que ahora sale...
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  177
  • Topics Per Day:  0.04
  • Content Count:  909
  • Reputation:   247
  • Joined:  11/08/11
  • Last Seen:  

Sube una compilación limpia e intenta compilar haber que pasa......

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  30
  • Reputation:   0
  • Joined:  12/03/13
  • Last Seen:  

Reemplaze la carpeta char del SRC completa y aún no funciona me da los errores en el char.c  en las lineas que postie  //5240-5286-5843//

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  177
  • Topics Per Day:  0.04
  • Content Count:  909
  • Reputation:   247
  • Joined:  11/08/11
  • Last Seen:  

remplaza todo el emulador actualizado e intentar compilarlo en tu propio ordenador. o bien descargate tu carpeta de tu servidor en un pc e intenta compilarlo.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  30
  • Reputation:   0
  • Joined:  12/03/13
  • Last Seen:  

descargue el git del emulador (master) con tortoise git  y lo compile con visual studio 2010 ultimate
 
pero me da errores al compilar:

 

 

1>------ Operación Generar iniciada: proyecto: map-server_sql, configuración: Debug Win32 ------

2>------ Operación Generar iniciada: proyecto: login-server_sql, configuración: Debug Win32 ------
1>Compilación iniciada a las 14-01-2014 2:36:56.
1>InitializeBuildStatus:
2>Compilación iniciada a las 14-01-2014 2:36:57.
1>  Se creará "map-server_sql\Debug\map-server_sql.unsuccessfulbuild" porque se especificó "AlwaysCreate".
2>InitializeBuildStatus:
2>  Se creará "login-server_sql\Debug\login-server_sql.unsuccessfulbuild" porque se especificó "AlwaysCreate".
2>ClCompile:
2>  grammar.c
2>  libconfig.c
2>  scanctx.c
2>  scanner.c
2>  strbuf.c
2>  conf.c
2>  mempool.c
2>  mutex.c
2>  raconf.c
2>  thread.c
2>  account_sql.c
2>  ipban_sql.c
2>  login.c
2>  loginlog_sql.c
2>  core.c
1>ClCompile:
1>  grammar.c
1>  libconfig.c
1>  scanctx.c
1>  scanner.c
1>  strbuf.c
1>  mt19937ar.c
1>  conf.c
1>  core.c
1>  db.c
1>  des.c
1>  ers.c
1>  grfio.c
1>  malloc.c
1>  mapindex.c
1>  md5calc.c
1>  mempool.c
1>  mutex.c
1>  nullpo.c
2>  db.c
1>  raconf.c
1>  random.c
2>  ers.c
2>  malloc.c
1>  showmsg.c
2>  md5calc.c
2>  nullpo.c
2>  random.c
1>  socket.c
2>  showmsg.c
1>  sql.c
2>  socket.c
2>  sql.c
1>  strlib.c
1>  thread.c
2>  strlib.c
2>  timer.c
1>  timer.c
2>  utils.c
1>  utils.c
2>  msg_conf.c
2>  cli.c
1>  msg_conf.c
2>  mt19937ar.c
1>  cli.c
1>  atcommand.c
1>  battle.c
1>  battleground.c
2>LINK : fatal error LNK1123: error durante la conversión a COFF: archivo no válido o dañado
1>  buyingstore.c
2>
2>ERROR al compilar.
2>
2>Tiempo transcurrido 00:00:13.54
3>------ Operación Generar iniciada: proyecto: char-server_sql, configuración: Debug Win32 ------
3>Compilación iniciada a las 14-01-2014 2:37:11.
3>InitializeBuildStatus:
3>  Se creará "char-server_sql\Debug\char-server_sql.unsuccessfulbuild" porque se especificó "AlwaysCreate".
1>  cashshop.c
1>  channel.c
1>  chat.c
1>  chrif.c
1>  clif.c
3>ClCompile:
3>  grammar.c
3>  libconfig.c
3>  scanctx.c
3>  scanner.c
3>  strbuf.c
3>  mt19937ar.c
3>  conf.c
3>  core.c
3>  db.c
3>  ers.c
1>  date.c
3>  malloc.c
1>  duel.c
3>  mapindex.c
3>  mempool.c
3>  mutex.c
1>  elemental.c
3>  nullpo.c
3>  raconf.c
3>  random.c
3>  showmsg.c
1>  guild.c
3>  socket.c
1>  intif.c
3>  sql.c
3>  strlib.c
3>  thread.c
1>  itemdb.c
3>  timer.c
1>  log.c
3>  utils.c
1>  mail.c
1>  map.c
3>  msg_conf.c
3>  cli.c
1>  mapreg_sql.c
3>  char.c
3>  int_auction.c
1>  homunculus.c
3>  int_elemental.c
1>  instance.c
3>  int_guild.c
1>  mercenary.c
3>  int_homun.c
3>  int_mail.c
3>  int_mercenary.c
1>  mob.c
1>  npc.c
3>  int_party.c
3>  int_pet.c
3>  int_quest.c
1>  npc_chat.c
3>  int_storage.c
1>  party.c
3>  inter.c
1>  path.c
1>  pc.c
1>  pc_groups.c
1>  pet.c
1>  quest.c
1>  script.c
3>LINK : fatal error LNK1123: error durante la conversión a COFF: archivo no válido o dañado
3>
3>ERROR al compilar.
3>
3>Tiempo transcurrido 00:00:19.02
1>  searchstore.c
4>------ Operación Generar iniciada: proyecto: mapcache, configuración: Debug Win32 ------
4>Compilación iniciada a las 14-01-2014 2:37:30.
1>  skill.c
4>InitializeBuildStatus:
4>  Se creará "mapcache\Debug\mapcache.unsuccessfulbuild" porque se especificó "AlwaysCreate".
1>  status.c
1>  storage.c
1>  trade.c
4>ClCompile:
4>  core.c
4>  des.c
4>  grfio.c
4>  malloc.c
4>  showmsg.c
4>  strlib.c
4>  utils.c
4>  mapcache.c
1>  unit.c
1>  vending.c
4>LINK : fatal error LNK1123: error durante la conversión a COFF: archivo no válido o dañado
4>
4>ERROR al compilar.
4>
4>Tiempo transcurrido 00:00:07.78
1>LINK : fatal error LNK1123: error durante la conversión a COFF: archivo no válido o dañado
1>
1>ERROR al compilar.
1>
1>Tiempo transcurrido 00:00:46.79
========== Generar: 0 correctos, 4 incorrectos, 0 actualizados, 0 omitidos ==========
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  177
  • Topics Per Day:  0.04
  • Content Count:  909
  • Reputation:   247
  • Joined:  11/08/11
  • Last Seen:  

Me descargado la última versión del repositorio y no me da ningun error por lo tanto no se cual puede ser la razón.

¿Puede ser que no cargues el fichero de compilación adecuado para tu versión de C++ o que tengas alguna configuración cambiada en el programa?
No puedo ayudarte ya que no se me ocurre nada más

 

sinerror_zpsd63b1de6.jpg

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  182
  • Reputation:   36
  • Joined:  01/26/12
  • Last Seen:  

Un poquito de Google no hace daño.

 

Tienes el linker en modo incremental. Deshabilita el linker incremental y te debería funcionar.

http://stackoverflow.com/questions/10888391/error-link-fatal-error-lnk1123-failure-during-conversion-to-coff-file-inval

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  30
  • Reputation:   0
  • Joined:  12/03/13
  • Last Seen:  

Gracias pude compilar.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...