Search:

Type: Posts; User: Holymanus

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,914

    thank you, a lot

    thank you, a lot
  2. Replies
    2
    Views
    1,914

    Makefile conditions for OS

    hello, is there any possible way how to write in Makefile condition like in source code,

    like this for example:


    #ifdef _WIN32
    gcc $? -o $@ -lws2_32
    #else
    gcc $? -o $@
  3. Replies
    6
    Views
    2,459

    You mean link this ? gcc xxx.o xxxx.o...

    You mean link this ?

    gcc xxx.o xxxx.o -lpthread -o xxxx
  4. Replies
    6
    Views
    2,459

    sorry i forgot about it acctualy i was using...

    sorry i forgot about it
    acctualy i was using -lpthread
  5. Replies
    6
    Views
    2,459

    Undefined reference ?

    Hello im getting error while compiling my source code:

    Undefined reference to "pthread_create"
    Undefined reference to "pthred_join"

    But there is
    #include <pthread.h>
  6. Replies
    6
    Views
    962

    so if i understood right, i will use this externs...

    so if i understood right, i will use this externs there where i want to save them yes ?
  7. Replies
    6
    Views
    962

    /* * tab.h * * Created on: 21.11.2010 * ...

    /*
    * tab.h
    *
    * Created on: 21.11.2010
    * Author: Martin
    */

    #ifndef TAB_H_
    #define TAB_H_
  8. Replies
    6
    Views
    962

    Creating data, but data nowhere

    Hello, i got some problem, when creating data trought another .c file (taken from header) which doesnt contain any main(). So question is: what to do that it will not dropping my data somewhere. Use...
  9. Replies
    11
    Views
    3,133

    right at the end it works and how to add it to...

    right at the end it works
    and how to add it to makefile


    edit: i have it, simply

    gcc $? -o $@ -lws2_32
  10. Replies
    11
    Views
    3,133

    same result like before ...

    same result like before


    C:\Users\Martin\Desktop\C\SEM\SEM\SEM 2. verze>gcc -lws2_32 -o clapp clientapp.c
    C:\Users\Martin\AppData\Local\Temp/ccIDgaaa.o(.text+0x17):clientapp.c: undefined...
  11. Replies
    11
    Views
    3,133

    And if im trying to add this file with ld.exe ...

    And if im trying to add this file with ld.exe



    ld.exe "C:\Program Files\Microsoft SDKs\Windows\v6.0A
    \Lib\Ws2_32.lib"
    ld.exe: warning: cannot find entry symbol _mainCRTStartup; defaulting to...
  12. Replies
    11
    Views
    3,133

    gcc -LC:\Program Files\Microsoft...

    gcc -LC:\Program Files\Microsoft SDKs\Windows\v6.0A\Lib -oSEM.exe tab.o clientapp.o app.o -lWs2_32.lib
    c:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/ld.exe: cannot find -lWs2_32.lib...
  13. Replies
    11
    Views
    3,133

    you mean with parametr -l Ws2_32.lib ?

    you mean with parametr -l Ws2_32.lib ?
  14. Replies
    11
    Views
    3,133

    gcc -oSEM.exe tab.o clientapp.o app.o...

    gcc -oSEM.exe tab.o clientapp.o app.o
    clientapp.o:clientapp.c:(.text+0x17): undefined reference to `WSAStartup@8'
    clientapp.o:clientapp.c:(.text+0x2e): undefined reference to `WSACleanup@0'...
  15. Replies
    11
    Views
    3,133

    #define INITSOCK if (WSAStartup(0x0202, ...

    Hi im solving problem of function of preprocesor, i dont understand why this cant be linked. Im speaking about funciton communication because there seems is the problem



    #include <string.h>...
  16. Replies
    24
    Views
    4,359

    Im trying put there only things which belong...

    Im trying put there only things which belong there. Now it is all right. One more time thank you for help
  17. Replies
    24
    Views
    4,359

    No i meaned that OS allocated for this tab struct...

    No i meaned that OS allocated for this tab struct place and im giving there more and more but there is only pointer so it is not what getting bigger
  18. Replies
    24
    Views
    4,359

    I hope im not overweighting this structure with...

    I hope im not overweighting this structure with adding new rows (i mean from memory side)
  19. Replies
    24
    Views
    4,359

    these are column names saved in structs which are...

    these are column names saved in structs which are in list too.


    here is part of my header file



    typedef struct Column {
    char name[10];
    struct Column *next;
  20. Replies
    24
    Views
    4,359

    And my changes in code : row...

    And my changes in code :



    row *create_row(int values[], char tab_name[]) {
    printf("2.1\n");
    if (find_tab(tab_name)->first_row != NULL) {
    ...
  21. Replies
    24
    Views
    4,359

    probably with writing one more row it accessing...

    probably with writing one more row it accessing to memory where it shouldnt be
    because output gives this



    2.
    2.1
    2.2
    2.3
    2.4
  22. Replies
    24
    Views
    4,359

    So i found one more problem when i add one more...

    So i found one more problem when i add one more row it kills program after this for loop
  23. Replies
    24
    Views
    4,359

    one more point for what there this pointer for...

    one more point for what there this pointer for previous_ptr
  24. Replies
    24
    Views
    4,359

    Thank you very much, this is logical, and array...

    Thank you very much, this is logical, and array was last chance which i didnt want use because all works on lists. I tryed it, and works well but seems i havent solved another problem but it is...
  25. Replies
    24
    Views
    4,359

    If i use this construction *iter =...

    If i use this construction

    *iter = first_item[i];
    then problem is that in iter noramly getting values but to first_item field nothing gets

    so how it would be right if this doesnt work
Results 1 to 25 of 30
Page 1 of 2 1 2